6namespace ctre {
namespace phoenix {
namespace led {
38 ColorFlowAnimation(
int r,
int g,
int b,
int w,
double speed = 1,
int numLed = -1,
Direction direction = Direction::Forward,
int ledOffset = 0);
The base class for one generic type of animation.
Definition: BaseTwoSizeAnimation.h:12
Animation that gradually lights the entire LED strip one LED at a time.
Definition: ColorFlowAnimation.h:11
void SetDirection(Direction direction)
Sets the direction the color flow moves in.
ColorFlowAnimation(int r, int g, int b, int w, double speed=1, int numLed=-1, Direction direction=Direction::Forward, int ledOffset=0)
Constructor for a ColorFlowAnimation.
Direction
What direction does the color go.
Definition: ColorFlowAnimation.h:16
@ Forward
Color goes forward, away from CANdle.
Definition: ColorFlowAnimation.h:20
@ Backward
Color goes backward, toward CANdle.
Definition: ColorFlowAnimation.h:24
namespace ctre
Definition: paramEnum.h:5