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

◆ WaveSimulation1D_Real()

fl::WaveSimulation1D_Real::WaveSimulation1D_Real ( uint32_t length,
float speed = 0.16f,
int dampening = 6 )

Definition at line 29 of file wave_simulation_real.cpp.

31 : length(len),
32 grid1(new int16_t[length + 2]()), // Allocate and zero-initialize with
33 // length+2 elements.
34 grid2(new int16_t[length + 2]()), whichGrid(0),
36 // Additional initialization can be added here if needed.
37}
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
fl::scoped_array< int16_t > grid2
fl::scoped_array< int16_t > grid1
int16_t float_to_fixed(float f)

References dampening, fl::wave_detail::float_to_fixed(), grid1, grid2, length, mCourantSq, mDampenening, and whichGrid.

+ Here is the call graph for this function: