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

◆ seti16()

void fl::WaveSimulation2D_Real::seti16 ( size_t x,
size_t y,
int16_t value )

Definition at line 217 of file wave_simulation_real.cpp.

217 {
218 if (x >= width || y >= height) {
219 FASTLED_WARN("Out of range: " << x << ", " << y);
220 return;
221 }
222 int16_t *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
223 curr[(y + 1) * stride + (x + 1)] = value;
224}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83
fl::vector< int16_t, fl::allocator_psram< int16_t > > grid2
fl::vector< int16_t, fl::allocator_psram< int16_t > > grid1
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, grid1, grid2, height, stride, whichGrid, width, x, and y.

Referenced by setf().

+ Here is the caller graph for this function: