changeset 2007:9cff56d44ac6

tintable cyc effect wasn't obeying strength curve Ignore-this: e40bceeb7153aa37c93c19796c5bd9a3
author drewp@bigasterisk.com
date Mon, 10 Jun 2019 01:37:53 +0000
parents 5e0524c27bdb
children 51cedd7cf85c
files light9/effect/effecteval.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/effect/effecteval.py	Mon Jun 10 00:51:30 2019 +0000
+++ b/light9/effect/effecteval.py	Mon Jun 10 01:37:53 2019 +0000
@@ -457,7 +457,7 @@
 
 def effect_cyc(effectSettings, strength, songTime, noteTime):
     colorScale = effectSettings.get(L9['colorScale'], '#ffffff')
-    r, g, b = map(lambda x: x / 255, hex_to_rgb(colorScale))
+    r, g, b = map(lambda x: strength * x / 255, hex_to_rgb(colorScale))
 
     out ={
         (SKY['cycRed1'], L9['brightness']): r,