MCPcopy Create free account
hub / github.com/FastLED/FastLED / setFx

Method setFx

src/fl/fx/detail/fx_layer.cpp.hpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace fl {
11
12void FxLayer::setFx(fl::shared_ptr<Fx> newFx) {
13 if (newFx != fx) {
14 release();
15 fx = newFx;
16 }
17}
18
19void FxLayer::draw(fl::u32 now, float speed, const AudioBatch *audio) {
20 // assert(fx);

Callers 1

startTransitionMethod · 0.80

Calls 1

releaseFunction · 0.85

Tested by

no test coverage detected