aboutsummaryrefslogtreecommitdiff
path: root/config/C5Work.xml
blob: 6aac21ad5842b8a1231828dc836017a58459e045 (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
<!---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>