Package SmootLight :: Package pixelcore :: Module Pixel :: Class Pixel
[hide private]
[frames] | no frames]

Class Pixel

source code

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.

Instance Methods [hide private]
 
__init__(self, location) source code
 
turnOn(self) source code
 
turnOnFor(self, time) source code
 
processInput(self, pixelEvent, zindex, scale=1, currentTime=None) source code
 
clearAllEvents(self) source code
 
state(self, currentTime=None)
Combines all PixelEvents currently active and computes the current color of the pixel.
source code
 
__str__(self) source code
Class Variables [hide private]
  radius = 2
  timeOff = -1