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

◆ setEasingMode()

void fl::WaveFx::setEasingMode ( U8EasingFunction mode)
inline

Set easing function for wave amplitude calculation.

Parameters
modeEasing mode (LINEAR or SQRT)
  • LINEAR: Direct mapping of wave values (sharper, more digital)
  • SQRT: Square root mapping (softer, more natural-looking waves)

Definition at line 245 of file wave.h.

245 {
246 // Set the easing mode for the 8-bit value.
247 mWaveSim.setEasingMode(mode);
248 }
WaveSimulation2D mWaveSim
Definition wave.h:376

References mWaveSim.