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 87 of file fx_engine.cpp.hpp.

87 {
88 if (mEffects.has(id)) {
89 FxPtr fx;
90 mEffects.get(id, &fx);
91 return fx;
92 }
93 return FxPtr();
94}
IntFxMap mEffects
Collection of effects.
Definition fx_engine.h:136

References mEffects.