FastLED 3.9.15
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 295 of file wave.h.

295 {
296 // Set the value at the given coordinates in the wave simulation.
297 mWaveSim.setf(x, y, value);
298 }
WaveSimulation2D mWaveSim
Definition wave.h:376
constexpr int type_rank< T >::value

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