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

◆ getFx()

FxPtr fl::FxEngine::getFx ( int index)

Retrieves an effect from the engine without removing it.

Parameters
indexThe id of the effect to retrieve.
Returns
A pointer to the effect, or nullptr if the index was invalid.

Definition at line 77 of file fx_engine.cpp.

77 {
78 if (mEffects.has(id)) {
79 FxPtr fx;
80 mEffects.get(id, &fx);
81 return fx;
82 }
83 return FxPtr();
84}
IntFxMap mEffects
Collection of effects.
Definition fx_engine.h:121

References mEffects.