aboutsummaryrefslogtreecommitdiff
path: root/pixelevents/FadeIn.py
diff options
context:
space:
mode:
Diffstat (limited to 'pixelevents/FadeIn.py')
-rw-r--r--pixelevents/FadeIn.py12
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)