# HG changeset patch # User drewp@bigasterisk.com # Date 2018-06-10 21:07:42 # Node ID 23765682d925d5334fef4bb6acd8047374acd436 # Parent 9141cd4b4908cc5a5ebd3f8ba6652baeb36dc552 new whirlscolor Ignore-this: d80daac79c0ed31fe73b3a9fa95c4d44 diff --git a/light9/effect/effecteval.py b/light9/effect/effecteval.py --- a/light9/effect/effecteval.py +++ b/light9/effect/effecteval.py @@ -282,6 +282,23 @@ def effect_chase2(effectSettings, streng }) 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',