BaseTwoSizeAnimation
- class phoenix5.led.BaseTwoSizeAnimation(idx: int, r: int, g: int, b: int, w: int, speed: float, numLed: int, direction: int, size: int, ledOffset: int)
Bases:
Animation
The base class for one generic type of animation. These animations do allow the user to specify a color.
Constructor for the BaseStandardAnimation object
- Parameters:
idx – The animation-specific ID
r – The amount of red to set, a value between [0, 255]
g – The amount of green to set, a value between [0, 255]
b – The amount of blue to set, a value between [0, 255]
w – The amount of white to set, a value between [0, 255]
speed – The rate at which the animation runs at. Higher is generally faster
numLed – The number of LEDs to run the animation on
direction – An animation-specific parameter for its direction
size – An animation-specific parameter for its size
ledOffset – Where to start the animation
- getB() int
- getBaseStandardAnimation() phoenix5._ctre.led.BaseStandardAnimation
- getBaseTwoSizeAnimation() phoenix5._ctre.led.BaseTwoSizeAnimation
- getDirection() int
- getG() int
- getR() int
- getSize() int
- getW() int
- setB(b: int) None
Sets the B value of the LEDs
- Parameters:
b – The amount of blue to set, a value between [0, 255]
- setDirection(direction: int) None
- setG(g: int) None
Sets the G value of the LEDs
- Parameters:
g – The amount of green to set, a value between [0, 255]
- setR(r: int) None
Sets the R value of the LEDs
- Parameters:
r – The amount of red to set, a value between [0, 255]
- setSize(size: int) None
- setW(w: int) None
Sets the W value of the LEDs
- Parameters:
w – The amount of white to set, a value between [0, 255]