18 void push(fl::u32 index, uint8_t alpha) {
32 for (
size_t i = 0; i <
mIndices.size(); i++) {
52 const fl::u32 width =
waveSim.getWidth();
53 const fl::u32 height =
waveSim.getHeight();
54 for (fl::u32
y = 0;
y < height;
y++) {
55 for (fl::u32
x = 0;
x < width;
x++) {
58 batch.push(idx, value8);
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
fl::GradientInlined Gradient
void mapWaveToLEDs(const XYMap &xymap, WaveSimulation2D &waveSim, CRGB *leds) override
WaveSimulation1D waveSim(NUM_LEDS, SuperSample::SUPER_SAMPLE_2X)
Implements the FastLED namespace macros.
static int32_t grad(uint8_t hash, int32_t x)
Representation of an RGB pixel (Red, Green, Blue)
static const size_t kMaxBatchSize
WaveCrgbGradientMap::Gradient * mGradient
BatchDraw(CRGB *leds, WaveCrgbGradientMap::Gradient *grad)
void push(fl::u32 index, uint8_t alpha)
fl::FixedVector< uint8_t, kMaxBatchSize > ArrayAlphas
fl::FixedVector< fl::u32, kMaxBatchSize > ArrayIndices