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

◆ hsv2rgb_spectrum() [2/3]

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

Definition at line 236 of file hsv2rgb.cpp.

237{
238 CHSV hsv2(hsv);
239 hsv2.hue = scale8( hsv2.hue, 191);
240 hsv2rgb_raw(hsv2, rgb);
241}
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:44
void hsv2rgb_raw(const struct CHSV &hsv, struct CRGB &rgb)
Definition hsv2rgb.cpp:26
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition hsv.h:15

References hsv2rgb_raw(), and scale8().

+ Here is the call graph for this function: