FastLED 3.9.15
Loading...
Searching...
No Matches
hsv2rgb.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef __INC_HSV2RGB_H
4#define __INC_HSV2RGB_H
5
6
9
56
58
60
61struct CRGB;
62
63
64
70void hsv2rgb_rainbow( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
71void hsv2rgb_rainbow( const struct CHSV& hsv, struct CRGB& rgb);
72CRGB hsv2rgb_rainbow( const struct CHSV& hsv);
73
75#define HUE_MAX_RAINBOW 255
76
77
89void hsv2rgb_spectrum( const struct CHSV& hsv, struct CRGB& rgb);
90
92CRGB hsv2rgb_spectrum( const struct CHSV& hsv);
93
99void hsv2rgb_spectrum( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
100
102#define HUE_MAX_SPECTRUM 255
103
104
105
113void hsv2rgb_raw(const struct CHSV& hsv, struct CRGB & rgb);
114
120void hsv2rgb_raw(const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
121
123#define HUE_MAX 191
124
125
126
133void hsv2rgb_fullspectrum( const struct CHSV& hsv, struct CRGB& rgb);
134
136CRGB hsv2rgb_fullspectrum( const struct CHSV& hsv);
137
143void hsv2rgb_fullspectrum( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
144
145
146
182CHSV rgb2hsv_approximate( const CRGB& rgb);
183
184
186
188
189#endif
void hsv2rgb_fullspectrum(const struct CHSV &hsv, struct CRGB &rgb)
Converts an HSV value to RGB using the algorithm from here: https://en.wikipedia.org/wiki/HSL_and_HSV...
void hsv2rgb_raw(const struct CHSV &hsv, struct CRGB &rgb)
void hsv2rgb_spectrum(const struct CHSV &hsv, struct CRGB &rgb)
Convert an HSV value to RGB using a mathematically straight spectrum.
CHSV rgb2hsv_approximate(const CRGB &rgb)
Recover approximate HSV values from RGB.
Definition hsv2rgb.cpp:550
void hsv2rgb_rainbow(const struct CHSV *phsv, struct CRGB *prgb, int numLeds)
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
#define FASTLED_NAMESPACE_BEGIN
Definition namespace.h:22
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition hsv.h:15
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86