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

◆ mapWaveToLEDs()

virtual void fl::WaveCrgbMap::mapWaveToLEDs ( const XYMap & xymap,
WaveSimulation2D & waveSim,
fl::span< CRGB > leds )
pure virtual

Convert wave simulation values to LED colors.

Parameters
xymapCoordinate mapping from 2D grid to 1D LED array
waveSimWave simulation containing amplitude values
ledsOutput LED array to write colors to

Implemented in fl::WaveCrgbGradientMap, and fl::WaveCrgbMapDefault.

References leds, mapWaveToLEDs(), waveSim(), and xymap.

Referenced by mapWaveToLEDs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: