MCPcopy Create free account
hub / github.com/FastLED/FastLED / setCrgbMap

Method setCrgbMap

src/fl/fx/2d/wave.h:331–334  ·  view source on GitHub ↗

@brief Set custom color mapping function @param crgbMap Shared pointer to color mapper Replaces the current color mapper with a new one. Use WaveCrgbMapDefault for grayscale or WaveCrgbGradientMap for palette-based coloring.

Source from the content-addressed store, hash-verified

329 /// Use WaveCrgbMapDefault for grayscale or WaveCrgbGradientMap
330 /// for palette-based coloring.
331 void setCrgbMap(WaveCrgbMapPtr crgbMap) {
332 // Set a custom CRGB mapping function.
333 mCrgbMap = crgbMap;
334 }
335
336 /// @brief Render wave to LED array
337 /// @param context Draw context containing timestamp and LED buffer

Callers 1

setupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected