From a89c772cd64c6790906734f7128947e0f453c7e3 Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 15 Dec 2010 00:18:24 -0500 Subject: About halfway done with the Util cleanup. Some stuff left to do with scoping etc. --- pixelevents/DecayEvent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pixelevents') diff --git a/pixelevents/DecayEvent.py b/pixelevents/DecayEvent.py index 9a7c600..0b4c820 100644 --- a/pixelevents/DecayEvent.py +++ b/pixelevents/DecayEvent.py @@ -1,5 +1,6 @@ from operationscore.PixelEvent import * -import Util, math +import math +from util.ColorOps import * class DecayEvent(PixelEvent): def initEvent(self): self['Coefficient'] = abs(self['Coefficient']) @@ -8,7 +9,7 @@ class DecayEvent(PixelEvent): decay = math.exp(timeDelay*-1*self['Coefficient']) if self['DecayType'] == 'Proportional': decay = float(self['Coefficient']) / timeDelay - color = Util.multiplyColor(self['Color'], decay) + color = multiplyColor(self['Color'], decay) return color if sum(color) > 5 else None @staticmethod def generate(decayType, coefficient, color): -- cgit v1.2.3