HSV conversion function selection based on compile-time defines This allows users to configure which HSV conversion algorithm to use by setting one of the following defines:
- FASTLED_HSV_CONVERSION_SPECTRUM: Use spectrum conversion
- FASTLED_HSV_CONVERSION_FULL_SPECTRUM: Use full spectrum conversion
- FASTLED_HSV_CONVERSION_RAINBOW: Use rainbow conversion (explicit)
- Default (no define): Use rainbow conversion (backward compatibility) Array-based HSV conversion function selection using the same compile-time defines
- Parameters
-
phsv | CHSV array to convert to RGB |
prgb | CRGB array to store the result of the conversion (will be modified) |
numLeds | the number of array values to process |
Definition at line 57 of file crgb.h.
58{
59#if defined(FASTLED_HSV_CONVERSION_SPECTRUM)
61#elif defined(FASTLED_HSV_CONVERSION_FULL_SPECTRUM)
63#elif defined(FASTLED_HSV_CONVERSION_RAINBOW)
65#else
66
68#endif
69}
CRGB hsv2rgb_rainbow(const struct CHSV &hsv)
CRGB hsv2rgb_spectrum(const struct CHSV &hsv)
Inline version of hsv2rgb_spectrum which returns a CRGB object.
void hsv2rgb_fullspectrum(const struct CHSV &hsv, CRGB &rgb)
References FASTLED_FORCE_INLINE, hsv2rgb_fullspectrum(), hsv2rgb_rainbow(), and hsv2rgb_spectrum().
Referenced by CRGB::CRGB(), CRGB::operator=(), CRGB::setHSV(), and CRGB::setHue().