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

71 {
72 if (!mImpl) {
73 FL_WARN_IF(!mError.empty(), mError.c_str());
74 return;
75 }
76 mImpl->draw(context.now, context.leds);
77}
string mError
Definition video.h:91
VideoImplPtr mImpl
Definition video.h:90
#define FL_WARN_IF(COND, MSG)
Definition log.h:277

References FL_WARN_IF, fl::DrawContext::leds, mError, mImpl, and fl::DrawContext::now.

Referenced by loop(), and operator=().

+ Here is the caller graph for this function: