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

Method BatchDraw

src/fl/fx/2d/wave.cpp.hpp:22–26  ·  view source on GitHub ↗

@brief Construct batch drawer @param leds LED array to write colors to @param grad Gradient to use for color mapping

Source from the content-addressed store, hash-verified

20 /// @param leds LED array to write colors to
21 /// @param grad Gradient to use for color mapping
22 BatchDraw(fl::span<CRGB> leds, WaveCrgbGradientMap::Gradient *grad)
23 : mLeds(leds), mGradient(grad) {
24 mIndices.reserve(kMaxBatchSize); // Should be a no op for FixedVector.
25 mAlphas.reserve(kMaxBatchSize);
26 }
27
28 /// @brief Add an LED to the current batch
29 /// @param index LED array index to update

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected