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

◆ CreateArgsUpper()

fl::WaveFx::Args CreateArgsUpper ( )

Definition at line 31 of file wave.cpp.

31 {
34 out.half_duplex = true;
35 out.auto_updates = true;
36 out.speed = 0.25f;
37 out.dampening = 3.0f;
38 out.crgbMap = fl::make_shared<fl::WaveCrgbGradientMap>(electricGreenFirePal);
39 return out;
40}
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: