# HG changeset patch # User Drew Perttula # Date 1560105107 0 # Node ID a322fba0035caf8da3942770de2c8965ad2fabdc # Parent 5c1553fc0740ceeeb62600b07760bdaa02de25a6 tintable cyc effect Ignore-this: 61408125389e6146f5835d56a26df07a diff -r 5c1553fc0740 -r a322fba0035c light9/effect/effecteval.py --- a/light9/effect/effecteval.py Sun Jun 09 07:37:26 2019 +0000 +++ b/light9/effect/effecteval.py Sun Jun 09 18:31:47 2019 +0000 @@ -412,3 +412,25 @@ color = sample(img, x, y, effectSettings.get(L9['repeat'], False)) out[(dev, L9['color'])] = scale(rgb_to_hex(color), scl) return out + +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)) + + out ={ + (L9['theater/skyline/device/cycRed1'], L9['brightness']): r, + (L9['theater/skyline/device/cycRed2'], L9['brightness']): r, + (L9['theater/skyline/device/cycRed3'], L9['brightness']): r, + (L9['theater/skyline/device/cycRed4'], L9['brightness']): r, + (L9['theater/skyline/device/cycGreen1'], L9['brightness']): g, + (L9['theater/skyline/device/cycGreen2'], L9['brightness']): g, + (L9['theater/skyline/device/cycGreen3'], L9['brightness']): g, + (L9['theater/skyline/device/cycGreen4'], L9['brightness']): g, + (L9['theater/skyline/device/cycBlue1'], L9['brightness']): b, + (L9['theater/skyline/device/cycBlue2'], L9['brightness']): b, + (L9['theater/skyline/device/cycBlue3'], L9['brightness']): b, + (L9['theater/skyline/device/cycBlue4'], L9['brightness']): b, + + } + + return out diff -r 5c1553fc0740 -r a322fba0035c show/dance2019/effects.n3 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/show/dance2019/effects.n3 Sun Jun 09 18:31:47 2019 +0000 @@ -0,0 +1,6 @@ +@prefix : . +@prefix e: . +@prefix rdf: . +@prefix rdfs: . + +e:cyc a :Effect ; rdfs:label "cyc".