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 199 of file wave_simulation_real.cpp.

199 {
200 if (x >= width || y >= height) {
201 FASTLED_WARN("Out of range: " << x << ", " << y);
202 return;
203 }
204 int16_t *curr = (whichGrid == 0 ? grid1.get() : grid2.get());
205 curr[(y + 1) * stride + (x + 1)] = value;
206}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
fl::scoped_array< int16_t > grid1
fl::scoped_array< int16_t > grid2
#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: