CTRE_Phoenix 5.20.2
|
#include <RgbFadeAnimation.h>
Inherits ctre::phoenix::led::BaseStandardAnimation.
Public Member Functions | |
RgbFadeAnimation (double brightness=1, double speed=1, int numLed=-1) | |
Public Member Functions inherited from ctre::phoenix::led::BaseStandardAnimation | |
BaseStandardAnimation (int idx, double brightness, double speed, int numLed, double param4, double param5) | |
BaseStandardAnimation * | GetBaseStandardAnimation () |
BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation () |
void | SetBrightness (double brightness) |
void | SetParam4 (double param4) |
void | SetParam5 (double param5) |
double | GetBrightness () |
double | GetParam4 () |
double | GetParam5 () |
Public Member Functions inherited from ctre::phoenix::led::Animation | |
Animation (int idx, double speed, int numLed) | |
void | SetSpeed (double speed) |
void | SetNumLed (int numLed) |
virtual BaseStandardAnimation * | GetBaseStandardAnimation ()=0 |
virtual BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation ()=0 |
int | GetAnimationIdx () |
double | GetSpeed () |
int | GetNumLed () |
Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue
ctre::phoenix::led::RgbFadeAnimation::RgbFadeAnimation | ( | double | brightness = 1 , |
double | speed = 1 , |
||
int | numLed = -1 |
||
) |
Constructor for an RgbFadeAnimation
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 |