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

◆ CreateArgsLower()

WaveFx::Args CreateArgsLower ( )

Definition at line 97 of file wavefx.cpp.

97 {
98 WaveFx::Args out;
99 out.factor = SuperSample::SUPER_SAMPLE_2X; // 2x supersampling for smoother waves
100 out.half_duplex = true; // Only positive waves (no negative values)
101 out.auto_updates = true; // Automatically update the simulation each frame
102 out.speed = 0.18f; // Wave propagation speed
103 out.dampening = 9.0f; // How quickly waves lose energy
104 out.crgbMap = WaveCrgbGradientMapPtr::New(electricBlueFirePal); // Color palette for this wave
105 return out;
106}
WaveFxArgs Args
Definition wave.h:80
float speed
Definition wave.h:71
WaveCrgbMapPtr crgbMap
Definition wave.h:74
bool auto_updates
Definition wave.h:70
SuperSample factor
Definition wave.h:68
float dampening
Definition wave.h:72
bool half_duplex
Definition wave.h:69

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