MCPcopy Create free account
hub / github.com/FastLED/FastLED / setStencil

Method setStencil

src/fl/fx/2d/wave.h:261–263  ·  view source on GitHub ↗

@brief Select the discrete Laplacian stencil @param s LaplacianStencil::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

Source from the content-addressed store, hash-verified

259 /// setSuperSample() calls preserve it instead of re-applying the
260 /// multiplier-based default.
261 void setStencil(LaplacianStencil s) FL_NOEXCEPT {
262 mWaveSim.setStencil(s);
263 }
264
265 /// @brief Get the currently active Laplacian stencil
266 LaplacianStencil getStencil() const FL_NOEXCEPT {

Callers 6

FL_TEST_FILEFunction · 0.45
uiFunction · 0.45
loopFunction · 0.45
drawWaveFunction · 0.45
loopFunction · 0.45
loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected