FastLED 3.9.15
Loading...
Searching...
No Matches
hsv2rgb.cpp.hpp File Reference
#include "platforms/is_platform.h"
#include "fl/stl/stdint.h"
#include "fl/system/fastled.h"
#include "fl/math/math.h"
#include "hsv2rgb.h"
+ Include dependency graph for hsv2rgb.cpp.hpp:
+ This graph shows which files directly or indirectly include this file:

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

CRGB hsv2rgb_fullspectrum (const CHSV &hsv)
 Inline version of hsv2rgb_fullspectrum which returns a CRGB object.
 
void hsv2rgb_fullspectrum (const CHSV &hsv, CRGB &rgb)
 Converts an HSV value to RGB using the algorithm from here: https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative By Shawn Silverman.
 
void hsv2rgb_fullspectrum (const CHSV *phsv, CRGB *prgb, int numLeds)
 Converts an HSV value to RGB using the algorithm from here: https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative By Shawn Silverman.
 
CRGB hsv2rgb_rainbow (const CHSV &hsv)
 
void hsv2rgb_rainbow (const CHSV &hsv, CRGB &rgb)
 
void hsv2rgb_rainbow (const CHSV *phsv, CRGB *prgb, int numLeds)
 
void hsv2rgb_raw (const CHSV &hsv, CRGB &rgb)
 Convert an HSV value to RGB using a mathematically straight spectrum.
 
void hsv2rgb_raw (const CHSV *phsv, CRGB *prgb, int numLeds)
 Convert an HSV value to RGB using a mathematically straight spectrum.
 
void hsv2rgb_raw_avr (const CHSV &hsv, CRGB &rgb)
 HSV to RGB implementation in raw C, for the AVR platform only.
 
void hsv2rgb_raw_C (const CHSV &hsv, CRGB &rgb)
 HSV to RGB implementation in raw C, platform independent.
 
CRGB hsv2rgb_spectrum (const CHSV &hsv)
 Inline version of hsv2rgb_spectrum which returns a CRGB object.
 
void hsv2rgb_spectrum (const CHSV &hsv, CRGB &rgb)
 Convert an HSV value to RGB using a mathematically straight spectrum.
 
void hsv2rgb_spectrum (const CHSV *phsv, 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.