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 " << getAnimationName(current_animation));
160}
AnimartrixAnim current_animation
int fxGet() const
static const char * getAnimationName(AnimartrixAnim animation)
#define FASTLED_DBG(X)
Definition dbg.h:60
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: