aboutsummaryrefslogtreecommitdiff
path: root/pixelevents
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2011-01-21 00:57:14 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2011-01-21 00:57:14 -0500
commita223608dda0751551c6e8688c0c0e1c9a1d4e69c (patch)
treecd0620097745b7053abec7346f6bd7e65d99dafe /pixelevents
parentf45b5e262c394cf00ef88f7fca1eab1b4de0fec9 (diff)
Added a new config file to run the upstairs lights. Modified PixelMapper to
track cache hits. Added 60-strip layouts and renderer configs.
Diffstat (limited to 'pixelevents')
-rw-r--r--pixelevents/DecayEvent.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pixelevents/DecayEvent.py b/pixelevents/DecayEvent.py
index 3767729..f8d5ef0 100644
--- a/pixelevents/DecayEvent.py
+++ b/pixelevents/DecayEvent.py
@@ -4,12 +4,12 @@ from util.ColorOps import *
import util.Geo as Geo
class DecayEvent(PixelEvent):
def initEvent(self):
- self.coefficient = float(abs(self['Coefficient']))
- if self['DecayType'] == 'Exponential':
+ self.coefficient = float(abs(self.Coefficient))
+ if self.DecayType == 'Exponential':
self.decayType = 1
else:
self.decayType = 2
- self.color = self['Color']
+ self.color = self.Color
#SUBVERTING DESIGN FOR THE SAKE OF EFFICIENCY -- RUSSELL COHEN (2011-01-03-23:18)
def state(self,timeDelay):