FastLED 3.9.15
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}
int mCurrId
Id of the current effect.
Definition fx_engine.h:138
bool setNextFx(int index, u16 duration)
Sets the next effect to transition to.
IntFxMap mEffects
Collection of effects.
Definition fx_engine.h:136

References mCurrId, mEffects, and setNextFx().

+ Here is the call graph for this function: