FastLED 3.10.8
Loading...
Searching...
No Matches

◆ nextFx()

bool fl::FxEngine::nextFx ( u16 transition_ms = 500)

Transitions to the next effect in the sequence.

Parameters
durationThe duration of the transition in milliseconds.
Returns
True if the transition was initiated, false otherwise.

Definition at line 47 of file fx_engine.cpp.hpp.

47 {
48 bool ok = mEffects.next(mCurrId, &mCurrId, true);
49 if (!ok) {
50 return false;
51 }
52 setNextFx(mCurrId, duration);
53 return true;
54}
bool setNextFx(int index, u16 duration) FL_NO_EXCEPT
Sets the next effect to transition to.
int mCurrId
Id of the current effect.
Definition fx_engine.h:138
IntFxMap mEffects
Collection of effects.
Definition fx_engine.h:136

References fl::FL_NO_EXCEPT, mCurrId, mEffects, and setNextFx().

+ Here is the call graph for this function: