FastLED 3.9.7
Loading...
Searching...
No Matches
hsv2rgb.h
Go to the documentation of this file.
1#ifndef __INC_HSV2RGB_H
2#define __INC_HSV2RGB_H
3
4#include "FastLED.h"
5
6#include "pixeltypes.h"
7
10
57
59
61
62
63
64
70void hsv2rgb_rainbow( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
71
73#define HUE_MAX_RAINBOW 255
74
75
87void hsv2rgb_spectrum( const struct CHSV& hsv, struct CRGB& rgb);
88
90inline CRGB hsv2rgb_spectrum( const struct CHSV& hsv) {
91 CRGB rgb;
92 hsv2rgb_spectrum(hsv, rgb);
93 return rgb;
94}
95
101void hsv2rgb_spectrum( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
102
104#define HUE_MAX_SPECTRUM 255
105
106
107
115void hsv2rgb_raw(const struct CHSV& hsv, struct CRGB & rgb);
116
122void hsv2rgb_raw(const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
123
125#define HUE_MAX 191
126
127
163CHSV rgb2hsv_approximate( const CRGB& rgb);
164
165
167
169
170#endif
central include file for FastLED, defines the CFastLED class/object
void hsv2rgb_raw(const struct CHSV &hsv, struct CRGB &rgb)
Convert an HSV value to RGB using a mathematically straight spectrum.
Definition hsv2rgb.cpp:23
void hsv2rgb_spectrum(const struct CHSV &hsv, struct CRGB &rgb)
Convert an HSV value to RGB using a mathematically straight spectrum.
Definition hsv2rgb.cpp:226
CHSV rgb2hsv_approximate(const CRGB &rgb)
Recover approximate HSV values from RGB.
Definition hsv2rgb.cpp:498
void hsv2rgb_rainbow(const struct CHSV *phsv, struct CRGB *prgb, int numLeds)
Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies.
Definition hsv2rgb.cpp:479
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
Definition namespace.h:16
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Definition namespace.h:14
Includes defintions for RGB and HSV pixels.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54