@@ -37,10 +37,15 @@ class Blink(ColorCycle):
3737 :param pixel_object: The initialised LED object.
3838 :param float speed: Animation speed in seconds, e.g. ``0.1``.
3939 :param color: Animation color in ``(r, g, b)`` tuple, or ``0x000000`` hex format.
40+ :param background_color: Background color in ``(r, g, b)`` tuple, or ``0x000000``
41+ hex format. Defaults to BLACK.
42+ :param name: A human-readable name for the Animation. Used by the string function.
4043 """
4144
42- def __init__ (self , pixel_object , speed , color , name = None ):
43- super ().__init__ (pixel_object , speed , [color , BLACK ], name = name )
45+ # pylint: disable=too-many-arguments
46+ def __init__ (self , pixel_object , speed , color , background_color = BLACK , name = None ):
47+ self ._background_color = background_color
48+ super ().__init__ (pixel_object , speed , [color , background_color ], name = name )
4449
4550 def _set_color (self , color ):
46- self .colors = [color , BLACK ]
51+ self .colors = [color , self . _background_color ]
0 commit comments