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

Method draw

tests/fl/fx/fx_engine.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 MockFx(uint16_t numLeds, CRGB color) : fl::Fx(numLeds), mColor(color) {}
33
34 void draw(fl::Fx::DrawContext ctx) override {
35 mLastDrawTime = ctx.now;
36 for (uint16_t i = 0; i < mNumLeds; ++i) {
37 ctx.leds[i] = mColor;
38 }
39 }
40
41 fl::string fxName() const override { return "MockFx"; }
42

Callers 1

FL_TEST_FILEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected