tidy up but maybe not fix yet?
This commit is contained in:
parent
4d9503d3f1
commit
140b6441cd
1 changed files with 1 additions and 3 deletions
|
|
@ -120,11 +120,9 @@ class ColorCycle(Animation):
|
|||
def _color_generator(self):
|
||||
index = 0
|
||||
while True:
|
||||
index += 1
|
||||
if index > len(self.colors):
|
||||
index = 0
|
||||
self._color = self.colors[index]
|
||||
yield
|
||||
index = (index + 1) % len(self.colors)
|
||||
|
||||
|
||||
class Blink(ColorCycle):
|
||||
|
|
|
|||
Loading…
Reference in a new issue