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

◆ WaveFx()

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

Definition at line 82 of file wave.h.

84 args.factor, args.speed, args.dampening) {
85 // Initialize the wave simulation with the given parameters.
86 if (args.crgbMap == nullptr) {
87 // Use the default CRGB mapping function.
88 mCrgbMap = WaveCrgbMapDefaultPtr::New();
89 } else {
90 // Set a custom CRGB mapping function.
91 mCrgbMap = args.crgbMap;
92 }
93 setAutoUpdate(args.auto_updates);
94 setXCylindrical(args.x_cyclical);
95 }
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
Fx2d(const XYMap &xyMap)
Definition fx2d.h:20
void setAutoUpdate(bool autoUpdate)
Definition wave.h:155
WaveCrgbMapPtr mCrgbMap
Definition wave.h:170
void setXCylindrical(bool on)
Definition wave.h:97
WaveSimulation2D mWaveSim
Definition wave.h:169
uint16_t getWidth() const
Definition xymap.cpp:124
uint16_t getHeight() const
Definition xymap.cpp:126
corkscrew_args args
Definition old.h:142

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: