| 
    CTRE Phoenix C++ 5.34.0-beta-4
    
   | 
 
Animation that randomly turns on LEDs, until it reaches the maximum count and turns them all off. More...
#include <ctre/phoenix/led/TwinkleOffAnimation.h>
  
Public Types | |
| enum | TwinkleOffPercent {  Percent100 = 0 , Percent88 = 1 , Percent76 = 2 , Percent64 = 3 , Percent42 = 4 , Percent30 = 5 , Percent18 = 6 , Percent6 = 7 }  | 
| The maximum percentage of LEDs that are allowed to turn on.  More... | |
Public Member Functions | |
| TwinkleOffAnimation (int r, int g, int b, int w=0, double speed=1, int numLed=-1, TwinkleOffPercent divider=TwinkleOffPercent::Percent100, int ledOffset=0) | |
| Constructor for a TwinkleAnimation.  More... | |
| void | SetDivider (TwinkleOffPercent divider) | 
| Sets the percentage of LEDs that are allowed on.  More... | |
  Public Member Functions inherited from ctre::phoenix::led::BaseTwoSizeAnimation | |
| BaseTwoSizeAnimation (int idx, int r, int g, int b, int w, double speed, int numLed, int direction, int size, int ledOffset) | |
| Constructor for the BaseStandardAnimation object.  More... | |
| ~BaseTwoSizeAnimation () | |
| BaseStandardAnimation * | GetBaseStandardAnimation () | 
| BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation () | 
| void | SetR (int r) | 
| Sets the R value of the LEDs.  More... | |
| void | SetG (int g) | 
| Sets the G value of the LEDs.  More... | |
| void | SetB (int b) | 
| Sets the B value of the LEDs.  More... | |
| void | SetW (int w) | 
| Sets the W value of the LEDs.  More... | |
| void | SetDirection (int direction) | 
| void | SetSize (int size) | 
| int | GetR () | 
| int | GetG () | 
| int | GetB () | 
| int | GetW () | 
| int | GetDirection () | 
| int | GetSize () | 
  Public Member Functions inherited from ctre::phoenix::led::Animation | |
| Animation (int idx, double speed, int numLed, int ledOffset) | |
| Constructor for an Animation class.  More... | |
| virtual | ~Animation () | 
| void | SetSpeed (double speed) | 
| Sets the speed of the animation.  More... | |
| void | SetNumLed (int numLed) | 
| Sets the number of LEDs the animation will run on.  More... | |
| void | SetLedOffset (int ledOffset) | 
| Sets where the animation starts along the strip.  More... | |
| virtual BaseStandardAnimation * | GetBaseStandardAnimation ()=0 | 
| virtual BaseTwoSizeAnimation * | GetBaseTwoSizeAnimation ()=0 | 
| int | GetAnimationIdx () | 
| double | GetSpeed () | 
| int | GetNumLed () | 
| int | GetLedOffset () | 
Animation that randomly turns on LEDs, until it reaches the maximum count and turns them all off.
The maximum percentage of LEDs that are allowed to turn on.
| ctre::phoenix::led::TwinkleOffAnimation::TwinkleOffAnimation | ( | int | r, | 
| int | g, | ||
| int | b, | ||
| int | w = 0,  | 
        ||
| double | speed = 1,  | 
        ||
| int | numLed = -1,  | 
        ||
| TwinkleOffPercent | divider = TwinkleOffPercent::Percent100,  | 
        ||
| int | ledOffset = 0  | 
        ||
| ) | 
Constructor for a TwinkleAnimation.
| r | How much red should the color have [0, 255] | 
| g | How much green should the color have [0, 255] | 
| b | How much blue should the color have [0, 255] | 
| w | How much white should the color have [0, 255] | 
| speed | How fast should the color travel the strip [0, 1] | 
| numLed | How many LEDs the CANdle controls | 
| divider | What percentage of LEDs can be on at any point | 
| ledOffset | Where to start the animation | 
| void ctre::phoenix::led::TwinkleOffAnimation::SetDivider | ( | TwinkleOffPercent | divider | ) | 
Sets the percentage of LEDs that are allowed on.
| divider | The percentage of LEDs that are allowed on at any point |