6namespace ctre {
namespace phoenix {
namespace led {
42 LarsonAnimation(
int r,
int g,
int b,
int w = 0,
double speed = 1,
int numLed = -1,
BounceMode mode = BounceMode::Front,
int size = 2,
int ledOffset = 0);
The base class for one generic type of animation.
Definition: BaseTwoSizeAnimation.h:12
Animation that sends a pocket of light across the LED strip.
Definition: LarsonAnimation.h:11
LarsonAnimation(int r, int g, int b, int w=0, double speed=1, int numLed=-1, BounceMode mode=BounceMode::Front, int size=2, int ledOffset=0)
Constructor for a LarsonAnimation.
void SetBounceMode(BounceMode mode)
Sets the bounce mode of the animation.
void SetSize(int size)
Sets the size of the pocket of LEDs.
BounceMode
How the pocket of light behaves when it reaches the end of the strip.
Definition: LarsonAnimation.h:16
@ Front
Bounce the pocket as soon as the first LED reaches the end of the strip.
Definition: LarsonAnimation.h:20
@ Center
Bounce the pocket once it is midway through the end of the strip.
Definition: LarsonAnimation.h:24
@ Back
Bounce the pocket once all the LEDs are off the strip.
Definition: LarsonAnimation.h:28
namespace ctre
Definition: paramEnum.h:5