RainbowAnimation
- class phoenix5.led.RainbowAnimation(brightness: float = 1, speed: float = 1, numLed: int = -1, reverseDirection: bool = False, ledOffset: int = 0)
Bases:
BaseStandardAnimation
Animation that creates a rainbow throughout all the LEDs
Constructor for a RainbowAnimation
- Parameters:
brightness – The brightness of the LEDs [0, 1]
speed – How fast the rainbow travels through the leds [0, 1]
numLed – How many LEDs are controlled by the CANdle
reverseDirection – True to reverse the animation direction, so instead of going “toward” the CANdle, it will go “away” from the CANdle.
ledOffset – Where to start the animation