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. --- ...haviors.RandomSetBrightColorBehavior-pysrc.html | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 html/SmootLight.behaviors.RandomSetBrightColorBehavior-pysrc.html (limited to 'html/SmootLight.behaviors.RandomSetBrightColorBehavior-pysrc.html') diff --git a/html/SmootLight.behaviors.RandomSetBrightColorBehavior-pysrc.html b/html/SmootLight.behaviors.RandomSetBrightColorBehavior-pysrc.html new file mode 100644 index 0000000..fb474c1 --- /dev/null +++ b/html/SmootLight.behaviors.RandomSetBrightColorBehavior-pysrc.html @@ -0,0 +1,127 @@ + + + + + SmootLight.behaviors.RandomSetBrightColorBehavior + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package behaviors :: + Module RandomSetBrightColorBehavior + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.behaviors.RandomSetBrightColorBehavior

+
+ 1  from operationscore.Behavior import * 
+ 2  import util.ColorOps as color 
+ 3  import pdb 
+ 4  import colorsys 
+ 5  import random 
+
6 -class RandomSetBrightColorBehavior(Behavior): +
7 """Sets a random color that is bright.""" +
8 - def processResponse(self, sensorInputs, recursiveInputs): +
9 ret = [] +10 for sensory in sensorInputs: +11 newDict = dict(sensory) +12 newDict['Color'] = color.randomBrightColor() +13 ret.append(newDict) +14 return (ret, []) +
15 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3