From 8ba3b819ee1b892f7f7b81bcb9a0edaf2b4dd904 Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 17 Apr 2021 18:55:53 -0500 Subject: [PATCH] Update fixed local variable call --- CM2030 Graphics Programming/Topic 1/1.5.1/sketch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {