public property for rainbow.period
This commit is contained in:
parent
389e40119d
commit
5badc804f7
1 changed files with 9 additions and 0 deletions
|
|
@ -123,3 +123,12 @@ class Rainbow(Animation):
|
||||||
Resets the animation.
|
Resets the animation.
|
||||||
"""
|
"""
|
||||||
self._generator = self._color_wheel_generator()
|
self._generator = self._color_wheel_generator()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def period(self) -> float:
|
||||||
|
return self._period
|
||||||
|
|
||||||
|
@period.setter
|
||||||
|
def period(self, new_value: float) -> None:
|
||||||
|
self._period = new_value
|
||||||
|
self.reset()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue