FastLED 3.6.0
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
60FASTLED_NAMESPACE_BEGIN
61
62
71void hsv2rgb_rainbow( const struct CHSV& hsv, struct CRGB& rgb);
72
78void hsv2rgb_rainbow( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
79
81#define HUE_MAX_RAINBOW 255
82
83
95void hsv2rgb_spectrum( const struct CHSV& hsv, struct CRGB& rgb);
96
102void hsv2rgb_spectrum( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
103
105#define HUE_MAX_SPECTRUM 255
106
107
108
116void hsv2rgb_raw(const struct CHSV& hsv, struct CRGB & rgb);
117
123void hsv2rgb_raw(const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
124
126#define HUE_MAX 191
127
128
164CHSV rgb2hsv_approximate( const CRGB& rgb);
165
166
167FASTLED_NAMESPACE_END
168
170
171#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
void hsv2rgb_rainbow(const struct CHSV &hsv, struct CRGB &rgb)
Convert an HSV value to RGB using a visually balanced rainbow.
CHSV rgb2hsv_approximate(const CRGB &rgb)
Recover approximate HSV values from RGB.
Definition hsv2rgb.cpp:498
Definitions for pixel color data structs.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition pixeltypes.h:27
Representation of an RGB pixel (Red, Green, Blue)
Definition pixeltypes.h:120