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

◆ draw()

void fl::FxLayer::draw ( uint32_t now)
inline

Definition at line 28 of file fx_layer.h.

28 {
29 //assert(fx);
30 if (!frame) {
31 frame = FramePtr::New(fx->getNumLeds());
32 }
33
34 if (!running) {
35 // Clear the frame
36 memset(frame->rgb(), 0, frame->size() * sizeof(CRGB));
37 fx->resume(now);
38 running = true;
39 }
40 Fx::DrawContext context = {now, frame->rgb()};
41 fx->draw(context);
42 }
_DrawContext DrawContext
Definition fx.h:21
fl::Ptr< Fx > fx
Definition fx_layer.h:62
fl::Ptr< Frame > frame
Definition fx_layer.h:61
bool running
Definition fx_layer.h:63

References frame, fx, and running.