diff --git a/CM2030 Graphics Programming/Topic 1/1.5.1/sketch.js b/CM2030 Graphics Programming/Topic 1/1.5.1/sketch.js index 7ed621a..0b7f028 100644 --- a/CM2030 Graphics Programming/Topic 1/1.5.1/sketch.js +++ b/CM2030 Graphics Programming/Topic 1/1.5.1/sketch.js @@ -36,7 +36,7 @@ class Button { if(this.state == true) fill (255); else fill(0); - rect(locX, locY, w, h); + rect(this.locX, this.locY, this.w, this.h); } flick(x, y) {