integer division

This commit is contained in:
foamyguy 2024-12-16 14:47:32 -06:00
parent bac273b46d
commit 6ef0715b77

View file

@ -60,7 +60,7 @@ class RainbowComet(Comet):
ring=False, ring=False,
): ):
if step == 0: if step == 0:
self._colorwheel_step = max(int(256 / tail_length), 1) 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