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

◆ setf()

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

Set wave amplitude at a specific grid position.

Parameters
xX coordinate in grid space
yY coordinate in grid space
valueWave amplitude (0.0 to 1.0)

Use this to create a wave disturbance at a specific point. Value of 1.0 creates maximum amplitude wave that will propagate outward.

Definition at line 324 of file wave.h.

324 {
325 // Set the value at the given coordinates in the wave simulation.
326 mWaveSim.setf(x, y, value);
327 }
WaveSimulation2D mWaveSim
Definition wave.h:416
constexpr int type_rank< T >::value

References fl::FL_NO_EXCEPT, mWaveSim, fl::type_rank< T >::value, fl::x, and fl::y.