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

◆ getu8()

u8 fl::WaveFx::getu8 ( size_t x,
size_t y ) const
inline

Get wave amplitude as 8-bit value.

Parameters
xX coordinate in grid space
yY coordinate in grid space
Returns
Wave amplitude as 0-255 value

Returns the current wave amplitude at the given position, scaled and mapped to 0-255 range.

Definition at line 320 of file wave.h.

320 {
321 // Get the 8-bit value at the given coordinates in the wave simulation.
322 return mWaveSim.getu8(x, y);
323 }
WaveSimulation2D mWaveSim
Definition wave.h:376

References mWaveSim, fl::x, and fl::y.