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

Class DrawContext

src/fl/fx/detail/draw_context.h:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8class AudioBatch; // forward declaration — pointer only, no include needed
9
10struct DrawContext {
11 fl::u32 now;
12 fl::span<CRGB> leds;
13 u16 frame_time = 0;
14 float speed = 1.0f;
15 const AudioBatch *audio = nullptr; ///< Non-owning. Null when no audio.
16 DrawContext(fl::u32 now, fl::span<CRGB> leds, u16 frame_time = 0,
17 float speed = 1.0f, const AudioBatch *audio = nullptr)
18 : now(now), leds(leds), frame_time(frame_time), speed(speed),
19 audio(audio) {}
20};
21
22} // namespace fl

Callers 4

flowfield.hppFile · 0.85
loopFunction · 0.85
loopFunction · 0.85
loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected