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

◆ draw() [1/3]

void fl::Video::draw ( DrawContext context)
overridevirtual
Parameters
nowThe current time in milliseconds. Fx writers are encouraged to use this instead of millis() directly as this will more deterministic behavior.

Implements fl::Fx.

Definition at line 94 of file video.cpp.

94 {
95 if (!mImpl) {
96 FASTLED_WARN_IF(!mError.empty(), mError.c_str());
97 return;
98 }
99 mImpl->draw(context.now, context.leds);
100}
Str mError
Definition video.h:80
VideoImplPtr mImpl
Definition video.h:79
#define FASTLED_WARN_IF
Definition warn.h:8

References FASTLED_WARN_IF, fl::_DrawContext::leds, mError, mImpl, and fl::_DrawContext::now.

Referenced by loop().

+ Here is the caller graph for this function: