Pixel keeps a queue of events (PixelEvent objects) (actually a
dictionary keyed by event time). Every time is state is requested, it
processes all the members of its queue. If a member returns none, it is
removed from the queue. Otherwise, its value added to the Pixels color
weighted by z-index. To get the current color of the pixel, call the
state method.
|
|
|
|
|
|
|
processInput(self,
pixelEvent,
zindex,
scale=1,
currentTime=None) |
source code
|
|
|
|
|
state(self,
currentTime=None)
Combines all PixelEvents currently active and computes the current
color of the pixel. |
source code
|
|
|
|