FastLED 3.10.6
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 274 of file wave.h.

274 {
275 // Set the easing mode for the 8-bit value.
276 mWaveSim.setEasingMode(mode);
277 }
WaveSimulation2D mWaveSim
Definition wave.h:416

References mWaveSim.