blob: 179c462d97ad7938372c31a6c24f86b7b6bd5410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
<!---All configuration items contain a "Class" tag specifying the python class they represent, and an "Args" tag specifying the args to be passed in.-->
<LightInstallation>
<InstallationConfiguration>
<Defaults>
<PixelMapper>simplemap</PixelMapper>
</Defaults>
</InstallationConfiguration>
<PixelConfiguration>
<InheritsFrom>layouts/60StripLayout.xml</InheritsFrom>
</PixelConfiguration>
<PixelMapperConfiguration>
<PixelMapper>
<Class>pixelmappers.SimpleMapper</Class>
<Args>
<Id>simplemap</Id>
<CutoffDist>20</CutoffDist>
</Args>
</PixelMapper>
</PixelMapperConfiguration>
<RendererConfiguration>
<Renderer>
<InheritsFrom>renderers/60StripSeq.xml</InheritsFrom>
</Renderer>
<Renderer>
<InheritsFrom>renderers/Pygame.xml</InheritsFrom>
</Renderer>
</RendererConfiguration>
<InputConfiguration>
<InputElement>
<Class>inputs.PygameInput</Class>
<Args><!--Passed as a dictionary-->
<Id>pygameclick</Id>
<RefreshInterval>10</RefreshInterval>
<Clicks>True</Clicks>
</Args>
</InputElement>
<InputElement>
<Class>inputs.PygameInput</Class>
<Args><!--Passed as a dictionary-->
<Id>pygamekey</Id>
<RefreshInterval>10</RefreshInterval>
<Keyboard>True</Keyboard>
</Args>
</InputElement>
<InputElement>
<Class>inputs.UDPInput</Class>
<Args>
<Id>udp</Id>
<Port>3344</Port>
<RefreshInterval>50</RefreshInterval>
</Args>
</InputElement>
</InputConfiguration>
<BehaviorConfiguration>
<Behavior Id="dim">
<InheritsFrom>behaviors/DimColor.xml</InheritsFrom>
</Behavior>
<Behavior>
<Class>behaviors.Expand</Class>
<Args>
<Id>expand</Id>
<ExpandRate>8</ExpandRate>
</Args>
</Behavior>
<Behavior Id="colorchange">
<InheritsFrom>behaviors/RandomColor.xml</InheritsFrom>
<Args>
<ColorList>
<Val>(255,0,0)</Val>
<Val>(0,0,255)</Val>
</ColorList>
</Args>
</Behavior>
<Behavior Id="decay">
<InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom>
</Behavior>
<Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
<Id>expanddie</Id>
<ChainedBehaviors>
<Id>expand</Id>
<Id>decexpand</Id>
<Id>dim</Id>
<Id>8sectimeout</Id>
</ChainedBehaviors>
</Args>
</Behavior>
<Behavior>
<Class>behaviors.ExpandingColorZones</Class>
<Args>
<Id>colorzones</Id>
</Args>
</Behavior>
<Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
<Id>colorbars</Id>
<Inputs>
<Id>pygamekey</Id>
<Id>udp</Id>
</Inputs>
<ChainedBehaviors>
<Id>colorzones</Id>
<Id>mover</Id>
<Id>decay</Id>
</ChainedBehaviors>
<RecursiveHooks>{'mover':'expanddie'}</RecursiveHooks>
<RenderToScreen>True</RenderToScreen>
</Args>
</Behavior>
<Behavior>
<Class>behaviors.Timeout</Class>
<Args>
<Id>8sectimeout</Id>
<Timeout>8000</Timeout>
</Args>
</Behavior>
<Behavior>
<Class>behaviors.ResponseMover</Class>
<Args>
<Id>mover</Id>
</Args>
</Behavior>
<Behavior Id="decexpand" ParamName="ExpandRate">
<InheritsFrom>behaviors/Deccelerate.xml</InheritsFrom>
</Behavior>
</BehaviorConfiguration>
</LightInstallation>
|