blob: 252e31b9f878b2189b524deb186404fc09ea8c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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):
if self.timeState == -1:
self.timeState = timeDelay
if self.timeState == timeDelay:
return self.Color
return None
|