rainbow commet fix for tail_length > 256

This commit is contained in:
foamyguy 2024-12-13 11:52:07 -06:00
parent bcdedb2303
commit bac273b46d

View file

@ -60,7 +60,7 @@ class RainbowComet(Comet):
ring=False,
):
if step == 0:
self._colorwheel_step = int(256 / tail_length)
self._colorwheel_step = max(int(256 / tail_length), 1)
else:
self._colorwheel_step = step
self._colorwheel_offset = colorwheel_offset