From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- html/SmootLight.behaviors.ColorShift-pysrc.html | 129 ++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 html/SmootLight.behaviors.ColorShift-pysrc.html (limited to 'html/SmootLight.behaviors.ColorShift-pysrc.html') diff --git a/html/SmootLight.behaviors.ColorShift-pysrc.html b/html/SmootLight.behaviors.ColorShift-pysrc.html new file mode 100644 index 0000000..34a97b3 --- /dev/null +++ b/html/SmootLight.behaviors.ColorShift-pysrc.html @@ -0,0 +1,129 @@ + + + + + SmootLight.behaviors.ColorShift + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package behaviors :: + Module ColorShift + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.behaviors.ColorShift

+
+ 1  import util.ColorOps as colorOps 
+ 2  from operationscore.Behavior import * 
+ 3  import colorsys 
+
4 -class ColorShift(Behavior): +
5 - def processResponse(self, sensor, recurs): +
6 ret = [] + 7 for data in sensor: + 8 if not 'HSV' in data: + 9 data['HSV'] = list(colorsys.rgb_to_hsv(*data['Color'])) +10 +11 data['HSV'][0] += .01 +12 if data['HSV'][0] >= 360: +13 data['HSV'][0] = 0 +14 data['Color'] = colorsys.hsv_to_rgb(*data['HSV']) +15 ret.append(data) +16 return (ret,[]) +
17 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3