Class Animation

java.lang.Object
com.ctre.phoenix.led.Animation
Direct Known Subclasses:
ColorFlowAnimation, FireAnimation, LarsonAnimation, RainbowAnimation, RgbFadeAnimation, SingleFadeAnimation, StrobeAnimation, TwinkleAnimation, TwinkleOffAnimation

public abstract class Animation extends Object
The base class for all animations that CANdle supports.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Animation(int idx, double speed, int numLed)
    Constructor for an Animation class
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setNumLed(int numLed)
    Sets the number of LEDs the animation will run on
    void
    setSpeed(double speed)
    Sets the speed of the animation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Animation

      public Animation(int idx, double speed, int numLed)
      Constructor for an Animation class
      Parameters:
      idx - The animation-specific ID
      speed - The rate at which the animation runs at. Higher is generally faster
      numLed - The number of LEDs to run the animation on
  • Method Details

    • setSpeed

      public void setSpeed(double speed)
      Sets the speed of the animation
      Parameters:
      speed - The rate at which the animation runs at. Higher is generally faster
    • setNumLed

      public void setNumLed(int numLed)
      Sets the number of LEDs the animation will run on
      Parameters:
      numLed - The number of LEDs to run the animation on