aboutsummaryrefslogtreecommitdiff
path: root/pixelevents
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-27 16:50:59 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-27 16:50:59 -0500
commit5fb3ea060025241105dc8e9a174513c112f9a133 (patch)
treee98b1b3eab0b05b0e518b08cbab086d224fd9250 /pixelevents
parent5d29906fff79bc6e4ba83be7028e1380a0014d21 (diff)
A metric $#%$-ton of changes. Added doc-strings to EVERYTHING. Phew. Fixed a massive bug that
increases performance in by up to a factor of 60. A bunch of new behaviors for the class.
Diffstat (limited to 'pixelevents')
-rw-r--r--pixelevents/DecayEvent.py4
-rw-r--r--pixelevents/SingleFrameEvent.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/pixelevents/DecayEvent.py b/pixelevents/DecayEvent.py
index f8d5ef0..8ff423c 100644
--- a/pixelevents/DecayEvent.py
+++ b/pixelevents/DecayEvent.py
@@ -3,6 +3,10 @@ import math
from util.ColorOps import *
import util.Geo as Geo
class DecayEvent(PixelEvent):
+ """DecayEvent is a pixel event that can decay either Exponentially or Proportionally. Specify:
+ <DecayType> -- Exponential or Proportional
+ <Coefficient> -- Controls the speed of decay."""
+
def initEvent(self):
self.coefficient = float(abs(self.Coefficient))
if self.DecayType == 'Exponential':
diff --git a/pixelevents/SingleFrameEvent.py b/pixelevents/SingleFrameEvent.py
index 767f403..252e31b 100644
--- a/pixelevents/SingleFrameEvent.py
+++ b/pixelevents/SingleFrameEvent.py
@@ -1,5 +1,8 @@
from operationscore.PixelEvent import *
class SingleFrameEvent(PixelEvent):
+ """SingleFrameEvent is a PixelEvent that will only render for the first frame on which it is
+ queried"""
+
def initEvent(self):
self.timeState = -1
def state(self, timeDelay):