aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-17 02:45:27 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-17 02:45:27 -0500
commit67c62d8c9e650f594e9aea348b8ed0c1351c7d81 (patch)
treee71d7ac7fc2538eda3e43e8e591342cab9620d06 /config
parent2df9e408a0ff74539862c4a4e562a878cc11a329 (diff)
Added JPGInput to process images. Modified Input and LightInstallation to support passing multiple
inputs simultaeneously. Added FadeIn Pixel event. Needs work / configurability.
Diffstat (limited to 'config')
-rw-r--r--config/C5Sign.xml2
-rw-r--r--config/C5Work.xml78
2 files changed, 79 insertions, 1 deletions
diff --git a/config/C5Sign.xml b/config/C5Sign.xml
index 024f0d8..77f6bcc 100644
--- a/config/C5Sign.xml
+++ b/config/C5Sign.xml
@@ -208,7 +208,7 @@
<Id>centerleft</Id>
<Id>center</Id>
</Inputs>
- <TimeMap>{'scanningbars':0,'runcolordecay':10,'expandingcircles':10}</TimeMap>
+ <TimeMap>{'scanningbars':10,'runcolordecay':10,'expandingcircles':10}</TimeMap>
<InputMap>{'scanningbars':'centerleft', 'runcolordecay':'center',\
'expandingcircles':'center'}</InputMap>
<RenderToScreen>True</RenderToScreen>
diff --git a/config/C5Work.xml b/config/C5Work.xml
new file mode 100644
index 0000000..6aac21a
--- /dev/null
+++ b/config/C5Work.xml
@@ -0,0 +1,78 @@
+<!---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/C5SignLayout.xml</InheritsFrom>
+ </PixelConfiguration>
+ <PixelMapperConfiguration>
+ <PixelMapper>
+ <Class>pixelmappers.SimpleMapper</Class>
+ <Args>
+ <Id>simplemap</Id>
+ <CutoffDist>20</CutoffDist>
+ </Args>
+ </PixelMapper>
+ <PixelMapper>
+ <Class>pixelmappers.GaussianMapper</Class>
+ <Args>
+ <Id>gaussmap</Id>
+ <CutoffDist>1</CutoffDist>
+ <MinWeight>0.1</MinWeight>
+ <Width>1</Width>
+ <Height>.5</Height>
+ </Args>
+ </PixelMapper>
+ <PixelMapper>
+ <Class>pixelmappers.C5SignMapper</Class>
+ <Args>
+ <Id>c5signmapper</Id>
+ <CutoffDist>20</CutoffDist>
+ </Args>
+ </PixelMapper>
+ </PixelMapperConfiguration>
+ <RendererConfiguration>
+ <Renderer Scale="5">
+ <InheritsFrom>renderers/Pygame.xml</InheritsFrom>
+ </Renderer>
+ <Renderer>
+ <InheritsFrom>renderers/C5Renderer.xml</InheritsFrom>
+ </Renderer>
+ </RendererConfiguration>
+ <InputConfiguration>
+ <InputElement>
+ <Class>inputs.JPGInput</Class>
+ <Args>
+ <Id>jpg</Id>
+ <RefreshInterval>5000</RefreshInterval>
+ <Directory>../../C5SignImages</Directory>
+ </Args>
+ </InputElement>
+ <InputElement>
+ <Class>inputs.PygameInput</Class>
+ <Args>
+ <Id>pygamekey</Id>
+ <RefreshInterval>10</RefreshInterval>
+ <Keyboard>True</Keyboard>
+ </Args>
+ </InputElement>
+ </InputConfiguration>
+ <BehaviorConfiguration>
+ <Behavior>
+ <InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom>
+ <Args>
+ <Class>pixelevents.FadeIn</Class>
+ <Id>image</Id>
+ <Inputs>
+ <Id>jpg</Id>
+ </Inputs>
+ <Coefficient>.0005</Coefficient>
+ <RenderToScreen>True</RenderToScreen>
+ <Mapper>gaussmap</Mapper>
+ </Args>
+ </Behavior>
+ </BehaviorConfiguration>
+</LightInstallation>