Skip to content

Commit

Permalink
Merge pull request #122 from FoamyGuy/rainbowcommet_256_length_fix
Browse files Browse the repository at this point in the history
rainbow commet fix for tail_length > 256
  • Loading branch information
FoamyGuy authored Dec 18, 2024
2 parents bcdedb2 + 6ef0715 commit 0d782f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_led_animation/animation/rainbowcomet.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
ring=False,
):
if step == 0:
self._colorwheel_step = int(256 / tail_length)
self._colorwheel_step = max(256 // tail_length, 1)
else:
self._colorwheel_step = step
self._colorwheel_offset = colorwheel_offset
Expand Down

0 comments on commit 0d782f8

Please sign in to comment.