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

◆ WaveFx()

fl::WaveFx::WaveFx ( XYMap xymap,
Args args = Args() )
inline

Definition at line 81 of file wave.h.

82 : Fx2d(xymap), mWaveSim(xymap.getWidth(), xymap.getHeight(),
83 args.factor, args.speed, args.dampening) {
84 // Initialize the wave simulation with the given parameters.
85 if (args.crgbMap == nullptr) {
86 // Use the default CRGB mapping function.
87 mCrgbMap = WaveCrgbMapDefaultPtr::New();
88 } else {
89 // Set a custom CRGB mapping function.
90 mCrgbMap = args.crgbMap;
91 }
92 setAutoUpdate(args.auto_updates);
93 }
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
corkscrew_args args
Fx2d(const XYMap &xyMap)
Definition fx2d.h:20
void setAutoUpdate(bool autoUpdate)
Definition wave.h:151
WaveCrgbMapPtr mCrgbMap
Definition wave.h:166
WaveSimulation2D mWaveSim
Definition wave.h:165

References fl::Fx2d::Fx2d(), args, dampening, fl::Fx2d::getHeight(), fl::Fx2d::getWidth(), mWaveSim, setAutoUpdate(), speed, and xymap.

+ Here is the call graph for this function: