aboutsummaryrefslogtreecommitdiff
path: root/behaviors/DecayBehavior.py
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors/DecayBehavior.py')
-rw-r--r--behaviors/DecayBehavior.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/behaviors/DecayBehavior.py b/behaviors/DecayBehavior.py
new file mode 100644
index 0000000..f9efa3b
--- /dev/null
+++ b/behaviors/DecayBehavior.py
@@ -0,0 +1,15 @@
+from operationscore.Behavior import *
+from pixelevents.DecayEvent import *
+import Util
+import pdb
+class DecayBehavior(Behavior):
+ def processResponse(self, sensorInputs, recursiveInputs):
+ ret = []
+ #TODO: move into params
+ for sensory in sensorInputs:
+ outDict = {}
+ outDict[Util.location] = sensory[Util.location]
+ outDict['PixelEvent'] = \
+ DecayEvent.generate('Proportional',100, sensory['Color'])
+ ret.append(outDict)
+ return ret