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

◆ hsv2rgb_spectrum() [2/3]

void hsv2rgb_spectrum ( const struct CHSV & hsv,
struct CRGB & rgb )

Convert an HSV value to RGB using a mathematically straight spectrum.

This "spectrum" will have more green and blue than a "rainbow", and less yellow and orange.

FastLED 'Spectrum' Hue Chart

Note
This function wraps hsv2rgb_raw() and rescales the hue value to fit the smaller range.
Parameters
hsvCHSV struct to convert to RGB. Max hue supported is HUE_MAX_SPECTRUM
rgbCRGB struct to store the result of the conversion (will be modified)