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

◆ seti16()

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

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

248 {
249 if (x >= width || y >= height) {
250 FL_WARN("Out of range: " << x << ", " << y);
251 return;
252 }
253 i16 *curr = (whichGrid == 0 ? grid1.data() : grid2.data());
254 curr[(y + 1) * stride + (x + 1)] = value;
255}
fl::vector_psram< i16 > grid1
fl::vector_psram< i16 > grid2
#define FL_WARN(X)
Definition log.h:276
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: