FastLED 3.9.15
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 261 of file wave.h.

261 {
262 mWaveSim.setStencil(s);
263 }
WaveSimulation2D mWaveSim
Definition wave.h:376

References FL_NOEXCEPT, and mWaveSim.