aboutsummaryrefslogtreecommitdiff
path: root/operationscore/PixelEvent.py
diff options
context:
space:
mode:
Diffstat (limited to 'operationscore/PixelEvent.py')
-rw-r--r--operationscore/PixelEvent.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/operationscore/PixelEvent.py b/operationscore/PixelEvent.py
index 8567d93..66b6fdf 100644
--- a/operationscore/PixelEvent.py
+++ b/operationscore/PixelEvent.py
@@ -8,8 +8,11 @@ class PixelEvent(SmootCoreObject):
self.initEvent()
def initEvent(self):
pass
- def scale(c):
- self['Color'] *= c
+ #Returns a new PixelEvent, but with a response scaled by c.
+ def scale(self,c):
+ newDict = dict(self.argDict)
+ newDict['Color'] = Util.multiplyColor(newDict['Color'], c)
+ return self.__class__(newDict)
def state(self,timeDelay):
pass