From da934a838305bab72bd12dcd2b83e689f7c1cc3f Mon Sep 17 00:00:00 2001 From: Jim Salem Date: Fri, 28 Jan 2011 18:28:25 -0500 Subject: New Flasher behavior which fades colors in and out. Several new color functions. Created a "firefly" demo (moving colored bubbles that fade in and out) --- config/FireflyDemo.xml | 261 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 config/FireflyDemo.xml (limited to 'config') diff --git a/config/FireflyDemo.xml b/config/FireflyDemo.xml new file mode 100644 index 0000000..8008168 --- /dev/null +++ b/config/FireflyDemo.xml @@ -0,0 +1,261 @@ + + + + + + + + + + simplemap + + + + layouts/60StripLayout.xml + + + + pixelmappers.SimpleMapper + + simplemap + 20 + + + + pixelmappers.GaussianMapper + + gaussmap + 30 + 0.1 + 10 + 1 + + + + + + + renderers/Pygame.xml + + + + + inputs.PygameInput + + pygameclick + 10 + True + + + + inputs.PygameInput + + pygamekey + 10 + True + + + + inputs.UDPInput + + udp + 3344 + 50 + + + + + inputs/MouseFollower.xml + + + + + + behaviors.RandomSetBrightColorBehavior + + setbrightcolor + + + + + behaviors/RandomColor.xml + + + (255,0,0) + (0,0,255) + + + + + behaviors/PixelDecay.xml + + .5 + + + + behaviors/PixelDecay.xml + + + behaviors/SingleFrame.xml + + + behaviors/PixelDecay.xml + + .01 + + + + behaviors.XYMove + + xymove + 5 + 2 + + + + behaviors.RestrictLocation + + xbounce + {val}*-1 + XStep + {x}<0 or {x}>800 + + + + behaviors.RestrictLocation + + ybounce + {val}*-1 + YStep + {y}<0 or {y}>200 + + + + behaviors.BehaviorChain + + movebounce + + xymove + ybounce + xbounce + + + + + behaviors.Flasher + + flasher + + + + + behaviors.BehaviorChain + + flashermovebounce + + randmovement + ybounce + xbounce + + flasher + + + + + behaviors.Square + + square + 15 + + + + behaviors/LoopAndDie.xml + + 80 + + + + behaviors.RandomWalk + + randmovement + 20 + + + + + behaviors.ModifyParam + + fadecolor + Sensor + Color + [chan*.98 for chan in {val}] + + + + + behaviors.BehaviorChain + + runcolordecay + + pygameclick + + + setbrightcolor + mover + decay + + {'mover':'flashermovebounce'} + True + gaussmap + + + + behaviors.ResponseMover + + mover + + + + behaviors/Accelerate.xml + + + behaviors.EchoBehavior + + echo + 0 + (90,90,90) + False + + + + behaviors.BehaviorChain + + mousechaser + + followmouse + + + echo + square + singleframe + + True + + + + + behaviors/RunningBehavior.xml + + + -- cgit v1.2.3