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

Method draw

src/fl/fx/video.cpp.hpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool Video::draw(fl::u32 now, fl::span<CRGB> leds) {
59 if (!mImpl) {
60 FL_WARN_IF(!mError.empty(), mError.c_str());
61 return false;
62 }
63 bool ok = mImpl->draw(now, leds);
64 if (!ok) {
65 // Interpret not being able to draw as a finished signal.
66 mFinished = true;
67 }
68 return ok;
69}
70
71void Video::draw(DrawContext context) {
72 if (!mImpl) {

Callers

nothing calls this directly

Calls 6

getNumLedsMethod · 0.80
emptyMethod · 0.45
c_strMethod · 0.45
needsFrameMethod · 0.45
writeCRGBMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected