FastLED 3.9.15
Loading...
Searching...
No Matches

◆ flush()

void fl::anonymous_namespace{wave.cpp}::BatchDraw::flush ( )
inline

Definition at line 28 of file wave.cpp.

28 {
29 Slice<const uint8_t> alphas(mAlphas);
30 CRGB rgb[kMaxBatchSize] = {};
31 mGradient->fill(mAlphas, rgb);
32 for (size_t i = 0; i < mIndices.size(); i++) {
33 mLeds[mIndices[i]] = rgb[i];
34 }
35 mAlphas.clear();
36 mIndices.clear();
37 }
WaveCrgbGradientMap::Gradient * mGradient
Definition wave.cpp:45

References kMaxBatchSize, mAlphas, mGradient, mIndices, and mLeds.

Referenced by push().

+ Here is the caller graph for this function: