tidy up but maybe not fix yet?

This commit is contained in:
Roy Hooper 2019-11-29 19:50:15 -05:00
parent 4d9503d3f1
commit 140b6441cd

View file

@ -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):