ColorFlowAnimation
- class phoenix5.led.ColorFlowAnimation(r: int, g: int, b: int, w: int, speed: float = 1, numLed: int = -1, direction: phoenix5._ctre.led.ColorFlowAnimation.Direction = <Direction.Forward: 0>, ledOffset: int = 0)
Bases:
BaseTwoSizeAnimation
Animation that gradually lights the entire LED strip one LED at a time.
Constructor for a ColorFlowAnimation
- Parameters:
r – How much red should the color have [0, 255]
g – How much green should the color have [0, 255]
b – How much blue should the color have [0, 255]
w – How much white should the color have [0, 255]
speed – How fast should the color travel the strip [0, 1]
numLed – How many LEDs is the CANdle controlling
direction – What direction should the color move in
ledOffset – Where to start the animation
- class Direction(value: int)
Bases:
pybind11_object
What direction does the color go
Members:
Forward : Color goes forward, away from CANdle
Backward : Color goes backward, toward CANdle
- Backward = <Direction.Backward: 1>
- Forward = <Direction.Forward: 0>
- property name
- property value
- setDirection(direction: phoenix5._ctre.led.ColorFlowAnimation.Direction) None
Sets the direction the color flow moves in
- Parameters:
direction – What direction should the color move in