cycle complete at start_color
This commit is contained in:
parent
da467ce9b7
commit
43aa654b4d
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ class ColorCycle(Animation):
|
||||||
self._color = self.colors[index]
|
self._color = self.colors[index]
|
||||||
yield
|
yield
|
||||||
index = (index + 1) % len(self.colors)
|
index = (index + 1) % len(self.colors)
|
||||||
if index == 0:
|
if index == start_color:
|
||||||
self.cycle_complete = True
|
self.cycle_complete = True
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue