FastLED 3.9.15
|
Functions to convert from the HSV colorspace to the RGB colorspace.
Definition in file hsv2rgb.cpp.
Go to the source code of this file.
Macros | |
#define | APPLY_DIMMING(X) |
Apply dimming compensation to values. | |
#define | FASTLED_INTERNAL |
Disables pragma messages and warnings. | |
#define | FIXFRAC8(N, D) |
Convert a fractional input into a constant. | |
#define | FORCE_REFERENCE(var) |
Force a variable reference to avoid compiler over-optimization. | |
#define | HSV_SECTION_3 (0x40) |
Divide the color wheel into four sections, 64 elements each. | |
#define | HSV_SECTION_6 (0x20) |
Divide the color wheel into eight sections, 32 elements each. | |
Functions | |
void | hsv2rgb_rainbow (const CHSV &hsv, CRGB &rgb) |
void | hsv2rgb_rainbow (const struct CHSV *phsv, struct CRGB *prgb, int numLeds) |
Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies. | |
void | hsv2rgb_raw (const struct CHSV &hsv, struct CRGB &rgb) |
Convert an HSV value to RGB using a mathematically straight spectrum. | |
void | hsv2rgb_raw (const struct CHSV *phsv, struct CRGB *prgb, int numLeds) |
Convert an HSV value to RGB using a mathematically straight spectrum. | |
void | hsv2rgb_raw_avr (const struct CHSV &hsv, struct CRGB &rgb) |
HSV to RGB implementation in raw C, for the AVR platform only. | |
FASTLED_NAMESPACE_BEGIN void | hsv2rgb_raw_C (const struct CHSV &hsv, struct CRGB &rgb) |
HSV to RGB implementation in raw C, platform independent. | |
void | hsv2rgb_spectrum (const struct CHSV &hsv, CRGB &rgb) |
Convert an HSV value to RGB using a mathematically straight spectrum. | |
void | hsv2rgb_spectrum (const struct CHSV *phsv, struct CRGB *prgb, int numLeds) |
Convert an HSV value to RGB using a mathematically straight spectrum. | |
CHSV | rgb2hsv_approximate (const CRGB &rgb) |
Recover approximate HSV values from RGB. | |