aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/PunchingBagGUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'PunchingBag/src/PunchingBagGUI.java')
-rw-r--r--PunchingBag/src/PunchingBagGUI.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/PunchingBag/src/PunchingBagGUI.java b/PunchingBag/src/PunchingBagGUI.java
index 9a23741..7af4d71 100644
--- a/PunchingBag/src/PunchingBagGUI.java
+++ b/PunchingBag/src/PunchingBagGUI.java
@@ -536,7 +536,12 @@ public class PunchingBagGUI implements MouseListener, MouseMotionListener,
public void buttonPressed(int x, int y) {
System.out.println("Button Pressed: " + x + " " + y);
// bag.circleExpand(x, y, 16);
- bag.noise(new Rectangle(0, 0, 9, 20), 5000);
+ //bag.noise(new Rectangle(0, 0, 9, 20), 5000);
+ for (int bx=0; bx<bag.ledWidth; bx++) {
+ for (int by=0; by<bag.ledHeight; by++) {
+ bag.setLED(bx, by, PunchingBag.Colour.Red);
+ }
+ }
}