FastLED 3.10.8
Loading...
Searching...
No Matches

◆ hsv2rgb_spectrum() [3/3]

void hsv2rgb_spectrum ( const CHSV * phsv,
CRGB * prgb,
int numLeds )

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

See also
hsv2rgb_spectrum(const CHSV&, CRGB&)
Parameters
phsvCHSV array to convert to RGB. Max hue supported is HUE_MAX_SPECTRUM
prgbCRGB array to store the result of the conversion (will be modified)
numLedsthe number of array values to process

Definition at line 542 of file hsv2rgb.cpp.hpp.

542 {
543 for(int i = 0; i < numLeds; ++i) {
544 hsv2rgb_spectrum(phsv[i], prgb[i]);
545 }
546}
CRGB hsv2rgb_spectrum(const CHSV &hsv) FL_NO_EXCEPT
Inline version of hsv2rgb_spectrum which returns a CRGB object.

References FL_NO_EXCEPT, and hsv2rgb_spectrum().

+ Here is the call graph for this function: