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

◆ WaveFx()

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

Definition at line 85 of file wave.h.

86 : Fx2d(xymap), mWaveSim(xymap.getWidth(), xymap.getHeight(),
87 args.factor, args.speed, args.dampening) {
88 // Initialize the wave simulation with the given parameters.
89 if (args.crgbMap == nullptr) {
90 // Use the default CRGB mapping function.
92 } else {
93 // Set a custom CRGB mapping function.
94 mCrgbMap = args.crgbMap;
95 }
96 setAutoUpdate(args.auto_updates);
97 setXCylindrical(args.x_cyclical);
98 }
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
Fx2d(const XYMap &xyMap)
Definition fx2d.h:20
void setAutoUpdate(bool autoUpdate)
Definition wave.h:158
WaveCrgbMapPtr mCrgbMap
Definition wave.h:173
void setXCylindrical(bool on)
Definition wave.h:100
WaveSimulation2D mWaveSim
Definition wave.h:172
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348
corkscrew_args args
Definition old.h:150

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

+ Here is the call graph for this function: