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

◆ WaveSimulation2D_Real()

fl::WaveSimulation2D_Real::WaveSimulation2D_Real ( u32 W,
u32 H,
float speed = 0.16f,
float dampening = 6.0f )

Definition at line 159 of file wave_simulation_real.cpp.

161 : width(W), height(H), stride(W + 2),
162 grid1((W + 2) * (H + 2)),
163 grid2((W + 2) * (H + 2)), whichGrid(0),
164 // Initialize speed 0.16 in fixed Q15
166 // Dampening exponent; e.g., 6 means a factor of 2^6 = 64.
uint16_t speed
Definition Noise.ino:63
fl::vector< i16, fl::allocator_psram< i16 > > grid1
fl::vector< i16, fl::allocator_psram< i16 > > grid2
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)

References dampening(), fl::wave_detail::float_to_fixed(), grid1, grid2, height, mCourantSq, mDampening, speed, stride, whichGrid, and width.

+ Here is the call graph for this function: