@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.
| 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 |