Package com.ctre.phoenix.led
Class RgbFadeAnimation
java.lang.Object
com.ctre.phoenix.led.Animation
com.ctre.phoenix.led.RgbFadeAnimation
public class RgbFadeAnimation extends Animation
Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue
-
Constructor Summary
Constructors Constructor Description RgbFadeAnimation()
Constructor for an RgbFadeAnimation.RgbFadeAnimation(double brightness, double speed, int numLed)
Constructor for an RgbFadeAnimationRgbFadeAnimation(double brightness, double speed, int numLed, int ledOffset)
Constructor for an RgbFadeAnimation -
Method Summary
Modifier and Type Method Description com.ctre.phoenix.led.BaseStandardAnimation
getBaseStandardAnimation()
com.ctre.phoenix.led.BaseTwoSizeAnimation
getBaseTwoSizeAnimation()
void
setBrightness(double brightness)
Sets the brightness of this animation
-
Constructor Details
-
RgbFadeAnimation
Constructor for an RgbFadeAnimation- Parameters:
brightness
- How bright the LEDs are [0, 1]speed
- How fast the LEDs fade between Red, Green, and Blue [0, 1]numLed
- How many LEDs are controlled by the CANdleledOffset
- Where to start the animation
-
RgbFadeAnimation
Constructor for an RgbFadeAnimation- Parameters:
brightness
- How bright the LEDs are [0, 1]speed
- How fast the LEDs fade between Red, Green, and Blue [0, 1]numLed
- How many LEDs are controlled by the CANdle
-
RgbFadeAnimation
public RgbFadeAnimation()Constructor for an RgbFadeAnimation. Call the individual setters to tune the animation.
-
-
Method Details
-
setBrightness
public void setBrightness(double brightness)Sets the brightness of this animation- Parameters:
brightness
- The brightness to run the animation at. This is a scalar from [0, 1]
-
getBaseStandardAnimation
public com.ctre.phoenix.led.BaseStandardAnimation getBaseStandardAnimation() -
getBaseTwoSizeAnimation
public com.ctre.phoenix.led.BaseTwoSizeAnimation getBaseTwoSizeAnimation()
-