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

◆ nextFx()

bool fl::FxEngine::nextFx ( uint16_t 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 37 of file fx_engine.cpp.

37 {
38 bool ok = mEffects.next(mCurrId, &mCurrId, true);
39 if (!ok) {
40 return false;
41 }
42 setNextFx(mCurrId, duration);
43 return true;
44}
int mCurrId
Id of the current effect.
Definition fx_engine.h:123
bool setNextFx(int index, uint16_t duration)
Sets the next effect to transition to.
Definition fx_engine.cpp:46
IntFxMap mEffects
Collection of effects.
Definition fx_engine.h:121

References mCurrId, mEffects, and setNextFx().

+ Here is the call graph for this function: