Package com.ctre.phoenix.led
Class RgbFadeAnimation
java.lang.Object
com.ctre.phoenix.led.Animation
com.ctre.phoenix.led.RgbFadeAnimation
Deprecated, for removal: This API element is subject to removal in a future version.
Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructor for an RgbFadeAnimation.RgbFadeAnimation(double brightness, double speed, int numLed) Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an RgbFadeAnimationRgbFadeAnimation(double brightness, double speed, int numLed, int ledOffset) Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an RgbFadeAnimation -
Method Summary
Modifier and TypeMethodDescriptioncom.ctre.phoenix.led.BaseStandardAnimationDeprecated, for removal: This API element is subject to removal in a future version.com.ctre.phoenix.led.BaseTwoSizeAnimationDeprecated, for removal: This API element is subject to removal in a future version.voidsetBrightness(double brightness) Deprecated, for removal: This API element is subject to removal in a future version.Sets the brightness of this animationMethods inherited from class com.ctre.phoenix.led.Animation
setLedOffset, setNumLed, setSpeed
-
Constructor Details
-
RgbFadeAnimation
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.Constructor for an RgbFadeAnimation. Call the individual setters to tune the animation.
-
-
Method Details
-
setBrightness
public void setBrightness(double brightness) Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version. -
getBaseTwoSizeAnimation
public com.ctre.phoenix.led.BaseTwoSizeAnimation getBaseTwoSizeAnimation()Deprecated, for removal: This API element is subject to removal in a future version.
-
If the Phoenix 5 API must be used for this device, the device must have 22.X firmware. This firmware is available in Tuner X after selecting Phoenix 5 in the firmware year dropdown.