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 <code@argon.blue>
This commit is contained in:
Taylor Yu 2023-01-22 14:32:32 -06:00
parent 56728e3290
commit 58bc776678

View file

@ -65,7 +65,7 @@ class RainbowComet(Comet):
self._colorwheel_step = step
self._colorwheel_offset = colorwheel_offset
super().__init__(
pixel_object, speed, 0, tail_length, reverse, bounce, name, ring
pixel_object, speed, 0, 0, tail_length, reverse, bounce, name, ring
)
def _set_color(self, color):