FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setStencil()

void fl::WaveFx::setStencil ( LaplacianStencil s)
inline

Select the discrete Laplacian stencil.

Parameters
sLaplacianStencil::FivePoint (default at SuperSample 1X) or LaplacianStencil::NinePointIsotropic (auto-selected at SuperSample >= 2X; opt-in at 1X)

5-point is faster but anisotropic — ripples can look square-ish on larger grids. 9-point is ~2x reads + ALU per cell but rounder, noticeably so at 16x16+ native grids with gradient coloring. Calling this marks the choice as user-set, so subsequent setSuperSample() calls preserve it instead of re-applying the multiplier-based default.

Definition at line 290 of file wave.h.

290 {
291 mWaveSim.setStencil(s);
292 }
WaveSimulation2D mWaveSim
Definition wave.h:416

References fl::FL_NO_EXCEPT, and mWaveSim.