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 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.
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
fl::vector< int16_t, fl::allocator_psram< int16_t > > grid2
fl::vector< int16_t, fl::allocator_psram< int16_t > > grid1
uint16_t speed
Definition funky.cpp:82
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: