aboutsummaryrefslogtreecommitdiff
path: root/config/LightInstallationConfig.xml
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2010-11-29 00:00:26 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2010-11-29 00:00:26 -0500
commitcf1f2224b3625b01a6aa7db221403849b308b3bc (patch)
tree9ad55077f45efc7a8434688332ee281a28a1cae7 /config/LightInstallationConfig.xml
parent9c9babfa7032b443138c4b457aabaf79fad385b3 (diff)
Making recursive behaviors work. Some bugs existed before. Adding running
behavior which makes a signal bounce back and forth.
Diffstat (limited to 'config/LightInstallationConfig.xml')
-rw-r--r--config/LightInstallationConfig.xml48
1 files changed, 26 insertions, 22 deletions
diff --git a/config/LightInstallationConfig.xml b/config/LightInstallationConfig.xml
index 713646e..441b7e4 100644
--- a/config/LightInstallationConfig.xml
+++ b/config/LightInstallationConfig.xml
@@ -14,21 +14,18 @@
<spacing>12</spacing> <!--we can space at any value less the
l2lspacing-->
<numPixels>50</numPixels>
- <originLocation>(10,10)</originLocation>
+ <originLocation>(10,20)</originLocation>
</Args>
</PixelStrip>
<PixelStrip>
- <Class>layouts.ZigzagLayout</Class><!--Name of Layout Class,
- imported dynamically via a eval('import ' + name)-->
- <Args><!--Any args the layout class needs. This go as
- elements of a dictionary that gets passed to the Layout machinery-->
+ <Class>layouts.ZigzagLayout</Class>
+ <Args>
<Id>strip2</Id>
<zigLength>25</zigLength>
<zigAxis>X</zigAxis>
<yDirection>1</yDirection>
<pixelToPixelSpacing>12</pixelToPixelSpacing>
- <spacing>12</spacing> <!--we can space at any value less the
- l2lspacing-->
+ <spacing>12</spacing>
<numPixels>50</numPixels>
<originLocation>(10,30)</originLocation>
</Args>
@@ -46,18 +43,20 @@
<Renderer>
<Class>renderers.PygameRenderer</Class>
<Args>
+ <Id>pygamerender</Id>
<displaySize>(1300,50)</displaySize>
</Args>
</Renderer>
- <Renderer>
+ <!-- <Renderer>
<Class>renderers.IndoorRenderer</Class>
<Args>
+ <Id>indoorRenderer</Id>
<PowerSupply>
<IP>10.1.218.72</IP>
<PortMapping>{'strip1':1, 'strip2':2}</PortMapping>
</PowerSupply>
</Args>
- </Renderer>
+ </Renderer>-->
</RendererConfiguration>
<InputConfiguration>
<InputElement>
@@ -68,14 +67,6 @@
</Args>
</InputElement>
<InputElement>
- <Class>inputs.PygameInput</Class>
- <Args><!--Passed as a dictionary-->
- <Id>followmouse</Id>
- <FollowMouse>True</FollowMouse>
- <RefreshInterval>100</RefreshInterval>
- </Args>
- </InputElement>
- <InputElement>
<Class>inputs.UDPInput</Class>
<Args>
<Id>UDP</Id>
@@ -98,10 +89,11 @@
<Behavior>
<Class>behaviors.ColorChangerBehavior</Class>
<Args>
- <Id>color</Id>
+ <Id>colorchange</Id>
<z-index>0</z-index>
<RenderToScreen>False</RenderToScreen>
<Inputs>
+ <Id>pygame</Id>
</Inputs>
</Args>
</Behavior>
@@ -110,7 +102,7 @@
<Args>
<Id>decay</Id>
<DecayType>Exponential</DecayType>
- <Coefficient>.01</Coefficient>
+ <Coefficient>.005</Coefficient>
<z-index>0</z-index>
<RenderToScreen>False</RenderToScreen>
<Inputs>
@@ -130,16 +122,28 @@
<Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
+ <Id>runcolordecay</Id>
<Inputs>
- <Id>followmouse</Id>
+ <Id>pygame</Id>
</Inputs>
<ChainedBehaviors>
- <Id>echo</Id>
- <Id>color</Id>
+ <Id>colorchange</Id>
+ <Id>running</Id>
<Id>decay</Id>
</ChainedBehaviors>
<RenderToScreen>True</RenderToScreen>
</Args>
</Behavior>
+ <Behavior>
+ <Class>behaviors.RunningBehavior</Class>
+ <Args>
+ <Id>running</Id>
+ <Inputs>
+ <Id>pygame</Id>
+ </Inputs>
+ <StepSize>10</StepSize>
+ <RenderToScreen>False</RenderToScreen>
+ </Args>
+ </Behavior>
</BehaviorConfiguration>
</LightInstallation>