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

◆ set()

void fl::WaveSimulation1D_Real::set ( fl::size x,
float value )

Definition at line 99 of file wave_simulation_real.cpp.

99 {
100 if (x >= length) {
101 FASTLED_WARN("warning X value too high");
102 return;
103 }
104 i16 *curr = (whichGrid == 0) ? grid1.data() : grid2.data();
105 curr[x + 1] = float_to_fixed(value);
106}
int x
Definition simple.h:92
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, fl::wave_detail::float_to_fixed(), grid1, grid2, length, whichGrid, and x.

+ Here is the call graph for this function: