Package com.ctre.phoenix.led
Class Animation
java.lang.Object
com.ctre.phoenix.led.Animation
- Direct Known Subclasses:
ColorFlowAnimation,FireAnimation,LarsonAnimation,RainbowAnimation,RgbFadeAnimation,SingleFadeAnimation,StrobeAnimation,TwinkleAnimation,TwinkleOffAnimation
The base class for all animations that CANdle supports.
-
Constructor Summary
ConstructorsConstructorDescriptionAnimation(int idx, double speed, int numLed) Constructor for an Animation class -
Method Summary
-
Constructor Details
-
Animation
Constructor for an Animation class- Parameters:
idx- The animation-specific IDspeed- The rate at which the animation runs at. Higher is generally fasternumLed- The number of LEDs to run the animation on
-
-
Method Details
-
setSpeed
Sets the speed of the animation- Parameters:
speed- The rate at which the animation runs at. Higher is generally faster
-
setNumLed
Sets the number of LEDs the animation will run on- Parameters:
numLed- The number of LEDs to run the animation on
-