def __init__(self, pixel_max, strip, pixel_min=0, sleep=20, hsv=(0, 0, 0)): Effect.__init__(self, pixel_max=pixel_max, pixel_min=pixel_min, sleep=sleep, hsv=hsv) strip.off()
def __init__(self, pixel_max, strip, pixel_min=0, sleep=20, hsv=(0, 0, 0)): Effect.__init__(self, pixel_max=pixel_max, pixel_min=pixel_min, sleep=sleep, hsv=hsv) self._iterations = (pixel_max - pixel_min) * 2 strip.off()
def __init__(self, pixel_max, strip, pixel_min=0, sleep=5, hsv=(0, 0, 0)): Effect.__init__(self, pixel_max=pixel_max, pixel_min=pixel_min, sleep=sleep, hsv=hsv) self._ledCount = self.pixel_max - self.pixel_min self._iterationCount = self._ledCount * 2 self._iterations = 0 self._original_sleep = sleep self.sleep = sleep
def __init__(self, pixel_max, strip, pixel_min=0, sleep=10, hsv=(0, 0, 0)): Effect.__init__(self, pixel_max=pixel_max, pixel_min=pixel_min, sleep=sleep, hsv=hsv) self._newColorSpeed = 10 self._newPositionSpeed = 3 self._newColorTimer = 0 self._newPositionTimer = 0 self._currentColor = 0 self._iterations = 0 self._original_sleep = 1 self.sleep = 1
def __init__(self, pixel_max, strip, pixel_min=0, sleep=50, hsv=(0, 0, 0)): Effect.__init__(self, pixel_max=pixel_max, pixel_min=pixel_min, sleep=sleep, hsv=hsv) self._iterations_max = (pixel_max - pixel_min) * 2 self._iterations = self._iterations = self._iterations_max self._original_sleep = sleep # pixel dict self._pixels = [] # time for a single fading step self._fading_time = 10 # currently fading pixel self._current_pixel = None # possible states: # growing: starting to light up things self._state = 'begin' self.sleep = self._fading_time