55 for (
size_t i = 0; i <
mIndices.size(); i++) {
78 for (fl::u32
x = 0;
x <
width;
x++) {
81 batch.push(idx, value8);
fl::GradientInlined Gradient
void mapWaveToLEDs(const XYMap &xymap, WaveSimulation2D &waveSim, fl::span< CRGB > leds) FL_NO_EXCEPT override
Map wave values to gradient-colored LEDs.
fl::WaveSimulation1D waveSim(NUM_LEDS, fl::SuperSample::SUPER_SAMPLE_2X)
u8 u8 fract8 blur_amount FL_NO_EXCEPT
FASTLED_FORCE_INLINE float grad(int hash, float x, float y, float z) FL_NO_EXCEPT
Base definition for an LED controller.
2D wave simulation effect for LED matrices
Representation of an 8-bit RGB pixel (Red, Green, Blue)
void flush() FL_NO_EXCEPT
Process all accumulated entries and update LEDs.
WaveCrgbGradientMap::Gradient * mGradient
Gradient for color mapping.
ArrayIndices mIndices
LED indices in current batch.
BatchDraw(fl::span< CRGB > leds, WaveCrgbGradientMap::Gradient *grad) FL_NO_EXCEPT
Construct batch drawer.
bool isFull() FL_NO_EXCEPT
Check if batch is full.
fl::FixedVector< fl::u32, kMaxBatchSize > ArrayIndices
fl::span< CRGB > mLeds
Target LED array.
fl::FixedVector< u8, kMaxBatchSize > ArrayAlphas
ArrayAlphas mAlphas
Wave amplitudes in current batch.
void push(fl::u32 index, u8 alpha) FL_NO_EXCEPT
Add an LED to the current batch.
static const size_t kMaxBatchSize
Maximum batch size before forced flush.