From 5783d6336f014c05e0e46d7bc35533e70b280582 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Thu, 25 Nov 2010 21:44:00 -0500 Subject: Added BehaviorChain to support chains of behaviors. Added FollowMouse parameter to PygameInput to support following of mice. Added component registry to Util which allows any component to access any other component. Some changes to the structure of LightInstallation. --- pixelcore/PixelStrip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pixelcore/PixelStrip.py') diff --git a/pixelcore/PixelStrip.py b/pixelcore/PixelStrip.py index 14c87d9..45d2c8b 100644 --- a/pixelcore/PixelStrip.py +++ b/pixelcore/PixelStrip.py @@ -21,14 +21,13 @@ class PixelStrip: [l.turnOnFor(time) for l in self.pixels] #TODO: add test-on method to #pixels def respond(self, responseInfo): - print 'PixelEvent', responseInfo location = responseInfo[Util.location] if not 'PixelEvent' in responseInfo: if 'Color' in responseInfo: color = responseInfo['Color'] else: raise Exception('Need Color. Probably') - responseInfo['PixelEvent'] = StepEvent.generate(300, color) + responseInfo['PixelEvent'] = StepEvent.generate(300, color) (dist, pixel) = self.getPixelNearest(location) pixel.processInput(responseInfo['PixelEvent'], 0) #TODO: z-index -- cgit v1.2.3