From 84d914b0a015ef6c588253ac7f70382bfa9030e5 Mon Sep 17 00:00:00 2001 From: rcoh Date: Tue, 15 Feb 2011 15:15:43 -0500 Subject: Added documentation to repo in docs folder. --- config/C5Sign.xml | 234 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 config/C5Sign.xml (limited to 'config') diff --git a/config/C5Sign.xml b/config/C5Sign.xml new file mode 100644 index 0000000..6550067 --- /dev/null +++ b/config/C5Sign.xml @@ -0,0 +1,234 @@ + + + + + simplemap + + + + layouts/C5SignLayout.xml + + + + pixelmappers.SimpleMapper + + simplemap + 20 + + + + pixelmappers.GaussianMapper + + gaussmap + 30 + 0.1 + 10 + 1 + + + + + + renderers/C5Renderer.xml + + + renderers/Pygame.xml + + + + + inputs.PygameInput + + pygameclick + 10 + True + + + + inputs.PygameInput + + pygamekey + 10 + True + + + + inputs.UDPInput + + udp + 3344 + 50 + + + + + inputs/MouseFollower.xml + + + + + behaviors/RandomColor.xml + + + (255,0,0) + (0,0,255) + + + + + 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}>200 + + + + behaviors.RestrictLocation + + ybounce + {val}*-1 + YStep + {y}<0 or {y}>100 + + + + behaviors.BehaviorChain + + movebounce + + xymove + colorshift + ybounce + xbounce + + + + + behaviors.ModifyParam + + ysin + YStep + Sensor + 4*math.sin({x}/float(40)) + + + + behaviors.DebugBehavior + + debug + 0 + + pygamekey + udp + + + + + behaviors.AllPixels + + square + 20 + + + + behaviors/LoopAndDie.xml + + 80 + + + + behaviors.BehaviorChain + + runcolordecay + + pygameclick + + + colorchange + mover + decay + + {'mover':'movebounce'} + True + gaussmap + + + + behaviors.ResponseMover + + mover + + + + behaviors.RandomWalk + + randmovement + 2 + + + + behaviors/Accelerate.xml + + + behaviors.EchoBehavior + + echo + 0 + False + + + + behaviors.ColorShift + + colorshift + + + + behaviors.BehaviorChain + + mousechaser + + followmouse + + + echo + square + singleframe + + False + + + + behaviors/RunningBehavior.xml + + + -- cgit v1.2.3 From bb5a90235f2cf2efb28fa85a237774acd33f09c0 Mon Sep 17 00:00:00 2001 From: dlaw Date: Sun, 13 Feb 2011 00:09:39 +0800 Subject: Fixed python 2.7 issue where {val} is interpreted as set([val]). --- config/FireflyDemo.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/FireflyDemo.xml b/config/FireflyDemo.xml index 856569e..de639d9 100644 --- a/config/FireflyDemo.xml +++ b/config/FireflyDemo.xml @@ -81,7 +81,7 @@ behaviors.RestrictLocation xbounce - {val}*-1 + '{val}*-1' XStep {x}<0 or {x}>800 @@ -90,7 +90,7 @@ behaviors.RestrictLocation ybounce - {val}*-1 + '{val}*-1' YStep {y}<0 or {y}>200 -- cgit v1.2.3 From 2c9cb0784184346917f9ad509f9b2c4056b60167 Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 16 Feb 2011 20:07:15 -0500 Subject: remove email address. --- behaviors/Flasher.py | 2 +- config/FireflyDemo.xml | 2 +- docs/XmlConfiguration.tex | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/behaviors/Flasher.py b/behaviors/Flasher.py index 1d79d41..395d898 100644 --- a/behaviors/Flasher.py +++ b/behaviors/Flasher.py @@ -4,7 +4,7 @@ import util.ColorOps as colorops import pdb class Flasher(Behavior): """Implements a pulsing/flashing behavior. - Jim Salem: jsalem@gmail.com + Jim Salem Args: Factor - The speed of flashing. Must be b/w 0 and 1. Default is .95 diff --git a/config/FireflyDemo.xml b/config/FireflyDemo.xml index de639d9..06ae7ba 100644 --- a/config/FireflyDemo.xml +++ b/config/FireflyDemo.xml @@ -1,6 +1,6 @@ - + diff --git a/docs/XmlConfiguration.tex b/docs/XmlConfiguration.tex index a1cce8f..0ccd08d 100644 --- a/docs/XmlConfiguration.tex +++ b/docs/XmlConfiguration.tex @@ -17,7 +17,9 @@ As you will see, however, XML in SmootLight goes beyond simple configuration. XML in SmootLight allows us to declare a LightSystem (an inherently non-declarative thing) in the same way you might write a webpage in HTML. We will refer to the XML system here-on-in as - `SmootConf'. Without any further ado, lets start looking at + `SmootConf'. \textbf{The fastest way to get familiar with SmootConf is simply to look at + the XML files in the configuration file. However, if you want a more structured approach to + its feature and sublties this document should do the job.} Without any further ado, lets start looking at how this all works. \section{Declaring a class in SmootConf} The most common thing done is SmootConf is declaring a class -- Class declaration code will -- cgit v1.2.3