FastLED 3.10.6
Loading...
Searching...
No Matches

◆ seti16()

void fl::WaveSimulation2D_Real::seti16 ( fl::size x,
fl::size y,
i16 value )

Definition at line 266 of file wave_simulation_real.cpp.hpp.

266 {
267 if (x >= width || y >= height) {
268 FL_WARN("Out of range: %s, %s", x, y);
269 return;
270 }
271 i16 *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
272 curr[(y + 1) * stride + (x + 1)] = value;
273}
#define FL_WARN(...)
Definition log.h:440
constexpr int type_rank< T >::value

References FL_WARN, grid1, grid2, height, stride, fl::type_rank< T >::value, whichGrid, width, fl::x, and fl::y.

Referenced by setf().

+ Here is the caller graph for this function: