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

◆ fxSet()

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

Definition at line 149 of file animartrix.hpp.

149 {
150 int curr = fxGet();
151 if (fx < 0) {
152 fx = curr + fx;
153 if (fx < 0) {
154 fx = NUM_ANIMATIONS - 1;
155 }
156 }
157 fx = fx % NUM_ANIMATIONS;
158 current_animation = static_cast<AnimartrixAnim>(fx);
159 FASTLED_DBG("Setting animation to " << getAnimartrixName(current_animation));
160}
static const char * getAnimartrixName(AnimartrixAnim animation)
AnimartrixAnim current_animation
int fxGet() const
#define FASTLED_DBG(X)
Definition dbg.h:61
AnimartrixAnim
@ NUM_ANIMATIONS

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

Referenced by fxNext().

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