@brief Construct batch drawer @param leds LED array to write colors to @param grad Gradient to use for color mapping
| 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 |