diff options
author | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-17 02:45:27 -0500 |
commit | 67c62d8c9e650f594e9aea348b8ed0c1351c7d81 (patch) | |
tree | e71d7ac7fc2538eda3e43e8e591342cab9620d06 /config/C5Work.xml | |
parent | 2df9e408a0ff74539862c4a4e562a878cc11a329 (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/C5Work.xml')
-rw-r--r-- | config/C5Work.xml | 78 |
1 files changed, 78 insertions, 0 deletions
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> |