FastLED 3.9.15
Loading...
Searching...
No Matches

◆ fxSet()

void fl::Animartrix::fxSet ( int fx)

Definition at line 142 of file animartrix.hpp.

142 {
143 int curr = fxGet();
144 if (fx < 0) {
145 fx = curr + fx;
146 if (fx < 0) {
147 fx = NUM_ANIMATIONS - 1;
148 }
149 }
150 fx = fx % NUM_ANIMATIONS;
151 current_animation = static_cast<AnimartrixAnim>(fx);
152 FASTLED_DBG("Setting animation to " << getAnimationName(current_animation));
153}
AnimartrixAnim current_animation
int fxGet() const
static const char * getAnimationName(AnimartrixAnim animation)
#define FASTLED_DBG(X)
Definition dbg.h:57
AnimartrixAnim
@ NUM_ANIMATIONS

References current_animation, FASTLED_DBG, fxGet(), getAnimationName(), and fl::NUM_ANIMATIONS.

Referenced by fxNext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: