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

◆ WaveFx()

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

Definition at line 86 of file wave.h.

88 args.factor, args.speed, args.dampening) {
89 // Initialize the wave simulation with the given parameters.
90 if (args.crgbMap == nullptr) {
91 // Use the default CRGB mapping function.
93 } else {
94 // Set a custom CRGB mapping function.
95 mCrgbMap = args.crgbMap;
96 }
97 setAutoUpdate(args.auto_updates);
98 setXCylindrical(args.x_cyclical);
99 setUseChangeGrid(args.use_change_grid);
100 }
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
Fx2d(const XYMap &xyMap)
Definition fx2d.h:20
void setAutoUpdate(bool autoUpdate)
Definition wave.h:170
WaveCrgbMapPtr mCrgbMap
Definition wave.h:185
void setUseChangeGrid(bool enabled)
Definition wave.h:129
void setXCylindrical(bool on)
Definition wave.h:102
WaveSimulation2D mWaveSim
Definition wave.h:184
u16 getWidth() const
Definition xymap.cpp:122
u16 getHeight() const
Definition xymap.cpp:124
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(), setUseChangeGrid(), setXCylindrical(), speed, and xymap.

+ Here is the call graph for this function: