FastLED 3.10.8
Loading...
Searching...
No Matches

◆ seti16()

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

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

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

References fl::FL_NO_EXCEPT, 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: