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 98 of file video.cpp.

98 {
99 if (!mImpl) {
100 FASTLED_WARN_IF(!mError.empty(), mError.c_str());
101 return;
102 }
103 mImpl->draw(context.now, context.leds);
104}
Str mError
Definition video.h:77
VideoImplPtr mImpl
Definition video.h:76
#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: