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

◆ addf()

void fl::WaveFx::addf ( size_t x,
size_t y,
float value )
inline

Definition at line 132 of file wave.h.

132 {
133 // Add a value at the given coordinates in the wave simulation.
134 float sum = value + mWaveSim.getf(x, y);
135 mWaveSim.setf(x, y, MIN(1.0f, sum));
136 }
int y
Definition simple.h:93
int x
Definition simple.h:92
WaveSimulation2D mWaveSim
Definition wave.h:172
#define MIN(a, b)
Definition math_macros.h:41

References MIN, mWaveSim, x, and y.