CTRE Phoenix C++ 5.35.1
Loading...
Searching...
No Matches
RgbFadeAnimation.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
5
6namespace ctre {namespace phoenix {namespace led {
7
8/**
9 * Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue
10 */
12public:
13 /**
14 * Constructor for an RgbFadeAnimation
15 * @param brightness How bright the LEDs are [0, 1]
16 * @param speed How fast the LEDs fade between Red, Green, and Blue [0, 1]
17 * @param numLed How many LEDs are controlled by the CANdle
18 * @param ledOffset Where to start the animation
19 */
20 RgbFadeAnimation(double brightness = 1, double speed = 1, int numLed = -1, int ledOffset = 0);
21};
22
23} // namespace led
24} // namespace phoenix
25} // namespace ctre
The base class for one generic type of animation.
Definition BaseStandardAnimation.h:12
Animation that fades all the LEDs of a strip simultaneously between Red, Green, and Blue.
Definition RgbFadeAnimation.h:11
RgbFadeAnimation(double brightness=1, double speed=1, int numLed=-1, int ledOffset=0)
Constructor for an RgbFadeAnimation.
WPI Compliant CANcoder class.
Definition CANCoderStatusFrame.h:4