Skip to content

Commit 58bc776

Browse files
committed
rainbowcomet: add missing arg initing base class
In RainbowComet, the call to `super().__init__()` was missing the `background_color` argument. This caused strange effects when non-default arguments were passed. For example, setting `reverse=True` resulted a red comet with a tail length of 1, and setting `bounce=True` resulted in a reversed rainbow comet. Signed-off-by: Taylor Yu <[email protected]>
1 parent 56728e3 commit 58bc776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_led_animation/animation/rainbowcomet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565
self._colorwheel_step = step
6666
self._colorwheel_offset = colorwheel_offset
6767
super().__init__(
68-
pixel_object, speed, 0, tail_length, reverse, bounce, name, ring
68+
pixel_object, speed, 0, 0, tail_length, reverse, bounce, name, ring
6969
)
7070

7171
def _set_color(self, color):

0 commit comments

Comments
 (0)