changeset 1846:23765682d925

new whirlscolor Ignore-this: d80daac79c0ed31fe73b3a9fa95c4d44
author drewp@bigasterisk.com
date Sun, 10 Jun 2018 21:07:42 +0000
parents 9141cd4b4908
children eca35927bdd4
files light9/effect/effecteval.py
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/effect/effecteval.py	Sun Jun 10 20:34:03 2018 +0000
+++ b/light9/effect/effecteval.py	Sun Jun 10 21:07:42 2018 +0000
@@ -282,6 +282,23 @@
             })
     return out
     
+def effect_whirlscolor(effectSettings, strength, songTime, noteTime):
+    out = {}
+
+    col = effectSettings.get(L9['colorScale'], '#ffffff')
+    col = scale(col, effectSettings.get(L9['strength'], 1))
+    
+    for n in (1, 3):
+        dev = L9['device/q%s' % n]
+        scl = strength
+        col = literalColorHsv(((songTime / 5) + (n / 5)) % 1, 1, scl)
+        out.update({
+            (dev, L9['color']): col,
+            })
+
+    return out
+
+
 def effect_orangeSearch(effectSettings, strength, songTime, noteTime):
     dev = L9['device/auraStage']
     return {(dev, L9['color']): '#a885ff',