aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-13 16:03:39 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-13 16:03:39 -0500
commit6e0e6869a5ee1e4963071a18f24aa4dfdd442689 (patch)
tree59dfe233e69f331afe3be9137fe5638f359e1f56 /config
parentf6dd5ab92949843d2fb163e2d84f19e824a291dc (diff)
Added a circle behavior to make circles. Added ContinuousCenterInput to do what it says. Modified
SimpleMapper a bit.
Diffstat (limited to 'config')
-rw-r--r--config/C5Sign.xml84
1 files changed, 76 insertions, 8 deletions
diff --git a/config/C5Sign.xml b/config/C5Sign.xml
index 8c2871e..23a823a 100644
--- a/config/C5Sign.xml
+++ b/config/C5Sign.xml
@@ -68,6 +68,13 @@
<RefreshInterval>50</RefreshInterval>
</Args>
</InputElement>
+ <InputElement>
+ <Class>inputs.ContinuousCenterInput</Class>
+ <Args>
+ <Id>center</Id>
+ <RefreshInterval>1800</RefreshInterval>
+ </Args>
+ </InputElement>
<!--<InputElement>
<Class>inputs.TCPInput</Class>
<Args>
@@ -76,7 +83,7 @@
<RefreshInterval>10</RefreshInterval>
</Args>
</InputElement>-->
- <InputElement Id="followmouse" RefreshInterval="1000">
+ <InputElement Id="followmouse" RefreshInterval="10">
<InheritsFrom>inputs/MouseFollower.xml</InheritsFrom>
</InputElement>
</InputConfiguration>
@@ -90,10 +97,10 @@
<Behavior Id="colorchange">
<InheritsFrom>behaviors/RandomColor.xml</InheritsFrom>
<Args>
- <ColorList>
+ <!--ColorList>
<Val>(255,0,0)</Val>
<Val>(0,0,255)</Val>
- </ColorList>
+ </ColorList-->
</Args>
</Behavior>
<Behavior>
@@ -108,7 +115,7 @@
<Id>decay</Id>
</ChainedBehaviors>
<Mapper>gaussmap</Mapper>
- <RenderToScreen>True</RenderToScreen>
+ <RenderToScreen>False</RenderToScreen>
</Args>
</Behavior>
<Behavior Id="decay">
@@ -155,7 +162,6 @@
<Id>movebounce</Id>
<ChainedBehaviors>
<Id>xymove</Id>
- <!--Id>colorshift</Id-->
<Id>ybounce</Id>
<Id>xbounce</Id>
</ChainedBehaviors>
@@ -207,7 +213,7 @@
<Id>decay</Id>
</ChainedBehaviors>
<RecursiveHooks>{'mover':'movebounce'}</RecursiveHooks>
- <RenderToScreen>True</RenderToScreen>
+ <RenderToScreen>False</RenderToScreen>
<Mapper>gaussmap</Mapper>
</Args>
</Behavior>
@@ -246,16 +252,78 @@
<Args>
<Id>mousechaser</Id>
<Inputs>
- <Id>followmouse</Id>
</Inputs>
<ChainedBehaviors>
<Id>echo</Id>
- <Id>square</Id>
+ <Id>innercircle</Id>
+ <Id>outercircle</Id>
<Id>singleframe</Id>
</ChainedBehaviors>
<RenderToScreen>False</RenderToScreen>
</Args>
</Behavior>
+ <Behavior>
+ <Class>behaviors.Circle</Class>
+ <Args>
+ <Id>innercircle</Id>
+ <Radius>0</Radius>
+ <Outside>True</Outside>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.Circle</Class>
+ <Args>
+ <Id>outercircle</Id>
+ <Radius>3</Radius>
+ <Combine>True</Combine>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.ModifyParam</Class>
+ <Args>
+ <Id>incrinner</Id>
+ <ParamOp>{val}+.3</ParamOp>
+ <ParamName>innercircleRadius</ParamName>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.ModifyParam</Class>
+ <Args>
+ <Id>incrouter</Id>
+ <ParamOp>{val}+.3</ParamOp>
+ <ParamName>outercircleRadius</ParamName>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.BehaviorChain</Class>
+ <Args>
+ <Id>circle_expand</Id>
+ <ChainedBehaviors>
+ <Id>innercircle</Id>
+ <Id>outercircle</Id>
+ <Id>incrinner</Id>
+ <Id>incrouter</Id>
+ <Id>recursivedecay</Id>
+ </ChainedBehaviors>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.BehaviorChain</Class>
+ <Args>
+ <Id>expandingcirlces</Id>
+ <Inputs>
+ <Id>pygameclick</Id>
+ <Id>center</Id>
+ </Inputs>
+ <ChainedBehaviors>
+ <Id>colorchange</Id>
+ <Id>mover</Id>
+ <Id>decay</Id>
+ </ChainedBehaviors>
+ <RecursiveHooks>{'mover':'circle_expand'}</RecursiveHooks>
+ <RenderToScreen>True</RenderToScreen>
+ </Args>
+ </Behavior>
<Behavior Id="running">
<InheritsFrom>behaviors/RunningBehavior.xml</InheritsFrom>
</Behavior>