aboutsummaryrefslogtreecommitdiff
path: root/pixelcore/Pixel.py
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2010-11-25 21:44:00 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2010-11-25 21:44:00 -0500
commit5783d6336f014c05e0e46d7bc35533e70b280582 (patch)
treeb4e0b0b2787b8fe464baadbd375ad6dc6c1dbf76 /pixelcore/Pixel.py
parentb042647b68abdc82490ca6e059993b8eba28904c (diff)
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.
Diffstat (limited to 'pixelcore/Pixel.py')
-rw-r--r--pixelcore/Pixel.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/pixelcore/Pixel.py b/pixelcore/Pixel.py
index 6784c63..a71dba5 100644
--- a/pixelcore/Pixel.py
+++ b/pixelcore/Pixel.py
@@ -32,12 +32,9 @@ class Pixel:
eventResult = event.state(currentTime-eventTime)
if eventResult != None:
resultingColor = Util.combineColors(eventResult, resultingColor)
- print resultingColor
else:
deadEvents.append(eventTime)
[self.events.pop(event) for event in deadEvents]
- if sum(resultingColor) > 0:
- print resultingColor
return tuple(resultingColor)
def __str__(self):
return 'Loc: ' + str(self.location)