From 476322ce729ef56d808be66843fef18a83470191 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 12 Sep 2011 14:17:46 +0100 Subject: More led stuff. --- PunchingBag/src/PunchingBagGUI.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'PunchingBag/src/PunchingBagGUI.java') 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 Date: Mon, 12 Sep 2011 15:50:50 +0100 Subject: Kinda working stuff. --- PunchingBag/src/PunchingBagGUI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'PunchingBag/src/PunchingBagGUI.java') diff --git a/PunchingBag/src/PunchingBagGUI.java b/PunchingBag/src/PunchingBagGUI.java index adf30b0..b62c820 100644 --- a/PunchingBag/src/PunchingBagGUI.java +++ b/PunchingBag/src/PunchingBagGUI.java @@ -48,7 +48,6 @@ public class PunchingBagGUI implements MouseListener, MouseMotionListener, final boolean useDebugScreen = true; public static void main(String[] args) throws InterruptedException { - new PunchingBagGUI(); } @@ -535,14 +534,15 @@ public class PunchingBagGUI implements MouseListener, MouseMotionListener, @Override public void buttonPressed(int x, int y) { System.out.println("Button Pressed: " + x + " " + y); - // bag.circleExpand(x, y, 16); + //bag.circleExpand(x, y, 16); + bag.setLED(x, y, PunchingBag.Colour.Red); //bag.noise(new Rectangle(0, 0, 9, 20), 5000); /*for (int bx=0; bx