aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/PunchingBagGUI.java
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2011-09-12 14:17:46 +0100
committerChristopher Baines <cbaines8@gmail.com>2011-09-12 14:17:46 +0100
commit476322ce729ef56d808be66843fef18a83470191 (patch)
treecf43c90763d52f98f0fb46af9e92be12af090a70 /PunchingBag/src/PunchingBagGUI.java
parent036d5b97bcf7e7e79d53f7e594e353be2d5efdd5 (diff)
downloadpunchingbag-476322ce729ef56d808be66843fef18a83470191.tar
punchingbag-476322ce729ef56d808be66843fef18a83470191.tar.gz
More led stuff.
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);
+ }
+ }
}