FastLED 3.10.6
Loading...
Searching...
No Matches

◆ WaveSimulation2D_Real() [2/2]

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

Definition at line 200 of file wave_simulation_real.cpp.hpp.

204 : width(W), height(H), stride(W + 2),
208 mDampening(static_cast<int>(dampening)),
210 grid1.resize((W + 2) * (H + 2));
211 grid2.resize((W + 2) * (H + 2));
212}
uint16_t speed
Definition Noise.ino:72
static const int H
Definition PerfDisc.ino:21
static const int W
Definition PerfDisc.ino:20
fl::UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
i16 compute_damp_decay_q15(int damp) FL_NO_EXCEPT
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT
memory_resource * psram_memory_resource()
Get the PSRAM memory resource (wraps PSRamAllocate / PSRamDeallocate).

References fl::clamp(), fl::wave_detail::compute_damp_decay_q15(), dampening(), fl::FL_NO_EXCEPT, fl::wave_detail::float_to_fixed(), grid1, grid2, H, mCourantSq, mDampDecayQ15, mDampening, speed, stride, W, and whichGrid.

+ Here is the call graph for this function: