Merge pull request #122 from FoamyGuy/rainbowcommet_256_length_fix
rainbow commet fix for tail_length > 256
This commit is contained in:
commit
0d782f83ef
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class RainbowComet(Comet):
|
||||||
ring=False,
|
ring=False,
|
||||||
):
|
):
|
||||||
if step == 0:
|
if step == 0:
|
||||||
self._colorwheel_step = int(256 / tail_length)
|
self._colorwheel_step = max(256 // tail_length, 1)
|
||||||
else:
|
else:
|
||||||
self._colorwheel_step = step
|
self._colorwheel_step = step
|
||||||
self._colorwheel_offset = colorwheel_offset
|
self._colorwheel_offset = colorwheel_offset
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue