FastLED 3.9.15
Loading...
Searching...
No Matches
fl::WaveCrgbGradientMap Class Reference

Detailed Description

Wave-to-color mapper using gradient/palette coloring.

Maps wave amplitudes to colors using a gradient palette, allowing for colorful wave effects (e.g., blue water, fire-like waves, etc.). Uses batch processing internally for improved performance.

Definition at line 72 of file wave.h.

#include <wave.h>

+ Inheritance diagram for fl::WaveCrgbGradientMap:
+ Collaboration diagram for fl::WaveCrgbGradientMap:

Public Types

using Gradient = fl::GradientInlined
 

Public Member Functions

 WaveCrgbGradientMap () FL_NOEXCEPT=default
 Default constructor with no initial gradient.
 
 WaveCrgbGradientMap (const CRGBPalette16 &palette)
 Construct with a color palette.
 
void mapWaveToLEDs (const XYMap &xymap, WaveSimulation2D &waveSim, fl::span< CRGB > leds) override
 Map wave values to gradient-colored LEDs.
 
void setGradient (const Gradient &gradient)
 Set or update the color gradient.
 
- Public Member Functions inherited from fl::WaveCrgbMap
virtual ~WaveCrgbMap () FL_NOEXCEPT=default
 

Private Attributes

Gradient mGradient
 

The documentation for this class was generated from the following files: