add star arg and docstring for name

This commit is contained in:
foamyguy 2023-02-24 17:24:48 -06:00
parent 9179e7c25a
commit 3aaa75efbf
2 changed files with 5 additions and 0 deletions

View file

@ -42,6 +42,8 @@ class Comet(Animation):
maximum of the length of the ``pixel_object``.
:param bool reverse: Animates the comet in the reverse order. Defaults to ``False``.
:param bool bounce: Comet will bounce back and forth. Defaults to ``True``.
:param Optional[string] name: A human-readable name for the Animation.
Used by the to string function.
:param bool ring: Ring mode. Defaults to ``False``.
"""

View file

@ -42,6 +42,8 @@ class MulticolorComet(Comet):
maximum of the length of the ``pixel_object``.
:param bool reverse: Animates the comet in the reverse order. Defaults to ``False``.
:param bool bounce: Comet will bounce back and forth. Defaults to ``True``.
:param Optional[string] name: A human-readable name for the Animation.
Used by the to string function.
:param bool ring: Ring mode. Defaults to ``False``.
:param bool off_pixels: Turn pixels off after the animation passes them. Defaults to ``True``.
Setting to False will result in all pixels not currently in the comet
@ -54,6 +56,7 @@ class MulticolorComet(Comet):
pixel_object,
speed,
colors,
*,
tail_length=0,
reverse=False,
bounce=False,