From 9c9babfa7032b443138c4b457aabaf79fad385b3 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Fri, 26 Nov 2010 00:07:14 -0500 Subject: Add PixelMapper functionality to abstract away from mapping locations->Pixels. --- config/.LightInstallationConfig.xml.swp | Bin 20480 -> 0 bytes config/DecayBehavior.params | 3 + config/LightInstallationConfig.xml | 9 ++- config/MouseFollowerDemo.xml | 138 ++++++++++++++++++++++++++++++++ config/PixelAssembler.params | 6 ++ 5 files changed, 155 insertions(+), 1 deletion(-) delete mode 100644 config/.LightInstallationConfig.xml.swp create mode 100644 config/DecayBehavior.params create mode 100644 config/MouseFollowerDemo.xml create mode 100644 config/PixelAssembler.params (limited to 'config') diff --git a/config/.LightInstallationConfig.xml.swp b/config/.LightInstallationConfig.xml.swp deleted file mode 100644 index 05e30ce..0000000 Binary files a/config/.LightInstallationConfig.xml.swp and /dev/null differ diff --git a/config/DecayBehavior.params b/config/DecayBehavior.params new file mode 100644 index 0000000..67b7dcf --- /dev/null +++ b/config/DecayBehavior.params @@ -0,0 +1,3 @@ +{'DecayType': 'Decay type missing. Specify Exponential or Proportional.', + 'Coefficient':'Coeffienct missing. Coefficient for decay type. E^(-ct) if + exponential, c/t if proportional.'} diff --git a/config/LightInstallationConfig.xml b/config/LightInstallationConfig.xml index 3f73e0c..713646e 100644 --- a/config/LightInstallationConfig.xml +++ b/config/LightInstallationConfig.xml @@ -1,7 +1,6 @@ - layouts.ZigzagLayout @@ -35,6 +34,14 @@ + + + pixelmappers.SimpleMapper + + simplemap + + + renderers.PygameRenderer diff --git a/config/MouseFollowerDemo.xml b/config/MouseFollowerDemo.xml new file mode 100644 index 0000000..9e9f6e5 --- /dev/null +++ b/config/MouseFollowerDemo.xml @@ -0,0 +1,138 @@ + + + + + + layouts.ZigzagLayout + + strip1 + 25 + X + -1 + 12 + 12 + 50 + (10,10) + + + + layouts.ZigzagLayout + + strip2 + 25 + X + 1 + 12 + 12 + 50 + (10,30) + + + + + + renderers.PygameRenderer + + (1300,50) + + + + renderers.IndoorRenderer + + + 10.1.218.72 + {'strip1':1, 'strip2':2} + + + + + + + inputs.PygameInput + + pygame + 100 + + + + inputs.PygameInput + + followmouse + True + 100 + + + + inputs.UDPInput + + UDP + 6038 + 100 + + + + + + behaviors.EchoBehavior + + echo + 0 + False + + + + + + behaviors.ColorChangerBehavior + + color + 0 + False + + + + + + behaviors.DecayBehavior + + decay + Exponential + .01 + 0 + False + + + + + + behaviors.DebugBehavior + + debug + 0 + + UDP + + + + + behaviors.BehaviorChain + + + followmouse + + + echo + color + decay + + True + + + + diff --git a/config/PixelAssembler.params b/config/PixelAssembler.params new file mode 100644 index 0000000..1b1dee5 --- /dev/null +++ b/config/PixelAssembler.params @@ -0,0 +1,6 @@ +{'pixelToPixelSpacing':'pixelToPixel spacing not defined in argDict. This is the +length of wire between 2 adjacent LEDs. Common values are 4 or 12. +Specified in config XML.', 'numPixels': 'numPixels not defined in +argDict. Common value: 50.', 'originLocation':'originLocation not +defined in argDict. Values should be a string in the form (x,y). This +should be specified in the config XML.'} -- cgit v1.2.3