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

◆ WaveSimulation2D_Real()

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

Definition at line 141 of file wave_simulation_real.cpp.

143 : width(W), height(H), stride(W + 2),
144 grid1(new int16_t[(W + 2) * (H + 2)]()),
145 grid2(new int16_t[(W + 2) * (H + 2)]()), whichGrid(0),
146 // Initialize speed 0.16 in fixed Q15
148 // Dampening exponent; e.g., 6 means a factor of 2^6 = 64.
uint16_t speed
Definition Noise.ino:63
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
fl::scoped_array< int16_t > grid1
fl::scoped_array< int16_t > grid2
int16_t float_to_fixed(float f)

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: