FastLED 3.10.8
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 349 of file wave.h.

349 {
350 // Get the 8-bit value at the given coordinates in the wave simulation.
351 return mWaveSim.getu8(x, y);
352 }
WaveSimulation2D mWaveSim
Definition wave.h:416

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