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

◆ CreateArgsLower()

fl::WaveFx::Args CreateArgsLower ( )

Definition at line 20 of file wave.cpp.

20 {
23 out.half_duplex = true;
24 out.auto_updates = true;
25 out.speed = 0.18f;
26 out.dampening = 9.0f;
27 out.crgbMap = fl::make_shared<fl::WaveCrgbGradientMap>(electricBlueFirePal);
28 return out;
29}
WaveFxArgs Args
Definition wave.h:168
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
float speed
Wave propagation speed (0.0-1.0, typical: 0.1-0.3)
Definition wave.h:126
WaveCrgbMapPtr crgbMap
Custom color mapper (nullptr uses default grayscale)
Definition wave.h:134
bool auto_updates
If true, simulation advances automatically in draw()
Definition wave.h:124
SuperSample factor
Supersampling quality (SUPER_SAMPLE_2X recommended for balance)
Definition wave.h:120
float dampening
Energy dampening factor (higher = faster decay, typical: 3-10)
Definition wave.h:128
bool half_duplex
If true, constrains waves to positive values only.
Definition wave.h:122

References fl::WaveFxArgs::auto_updates, fl::WaveFxArgs::crgbMap, fl::WaveFxArgs::dampening, fl::WaveFxArgs::factor, fl::WaveFxArgs::half_duplex, fl::make_shared(), fl::WaveFxArgs::speed, and fl::SUPER_SAMPLE_2X.

Referenced by NewWaveSimulation2D().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: