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.get() : grid2.get());
223 curr[(y + 1) * stride + (x + 1)] = value;
224}
int y
Definition Audio.ino:72
int x
Definition Audio.ino:71
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: