commit
8dda51a010
1 changed files with 1 additions and 1 deletions
|
|
@ -85,9 +85,9 @@ class Rainbow(Animation):
|
||||||
if pos < last_pos:
|
if pos < last_pos:
|
||||||
cycle_completed = True
|
cycle_completed = True
|
||||||
last_pos = pos
|
last_pos = pos
|
||||||
wheel_index = int((pos / period) * len(self.colors))
|
|
||||||
|
|
||||||
if self.colors:
|
if self.colors:
|
||||||
|
wheel_index = int((pos / period) * len(self.colors))
|
||||||
self._draw_precomputed(num_pixels, wheel_index)
|
self._draw_precomputed(num_pixels, wheel_index)
|
||||||
else:
|
else:
|
||||||
wheel_index = int((pos / period) * 256)
|
wheel_index = int((pos / period) * 256)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue