diff options
author | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
commit | 67c62d8c9e650f594e9aea348b8ed0c1351c7d81 (patch) | |
tree | e71d7ac7fc2538eda3e43e8e591342cab9620d06 /pixelevents | |
parent | 2df9e408a0ff74539862c4a4e562a878cc11a329 (diff) |
Added JPGInput to process images. Modified Input and LightInstallation to support passing multiple
inputs simultaeneously. Added FadeIn Pixel event. Needs work / configurability.
Diffstat (limited to 'pixelevents')
-rw-r--r-- | pixelevents/FadeIn.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pixelevents/FadeIn.py b/pixelevents/FadeIn.py new file mode 100644 index 0000000..c080476 --- /dev/null +++ b/pixelevents/FadeIn.py @@ -0,0 +1,12 @@ +import math +from operationscore.PixelEvent import * +from util.ColorOps import * +import util.Geo as Geo +class FadeIn(PixelEvent): + def state(self, timeDelay): + decay = math.sin(timeDelay/float(1000)) + if timeDelay > 5000: + return None + if timeDelay > 2000 and timeDelay < 4000: + decay = 1 + return multiplyColor(self.Color,decay) |