Package SmootLight :: Package behaviors :: Module ColorChangerBehavior :: Class ColorChangerBehavior
[hide private]
[frames] | no frames]

Class ColorChangerBehavior

source code

                                    object --+        
                                             |        
operationscore.SmootCoreObject.SmootCoreObject --+    
                                                 |    
                  operationscore.Behavior.Behavior --+
                                                     |
                                                    ColorChangerBehavior

ColorChangerBehavior is a behavior for adding colors to responses.  If given no arguments, it
will generate a random color.  If it is given a list of colors [as below] it will pick randomly
from them.

<ColorList>
    <Color>(255,0,0)</Color>
    <Color>(30,79,200)</Color>
</ColorList>

ColorList also supports specification of a single color.

Instance Methods [hide private]
 
processResponse(self, sensorInputs, recursiveInputs) source code

Inherited from operationscore.Behavior.Behavior: addInput, addInputs, addMapper, addMapperToResponse, behaviorInit, getLastOutput, immediateProcessInput, init, setLastOutput, timeStep

Inherited from operationscore.SmootCoreObject.SmootCoreObject: __contains__, __getitem__, __getiter__, __init__, __setitem__, acquireLock, addDieListener, className, die, releaseLock, removeDieListener, validateArgDict, validateArgs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from operationscore.Behavior.Behavior: deepCopyPacket

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

processResponse(self, sensorInputs, recursiveInputs)

source code 
Overrides: operationscore.Behavior.Behavior.processResponse