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#include "FastLED.h"
7
8#include "pixeltypes.h"
9
12
59
61
63
64
65
66
72void hsv2rgb_rainbow( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
73
75#define HUE_MAX_RAINBOW 255
76
77
89void hsv2rgb_spectrum( const struct CHSV& hsv, struct CRGB& rgb);
90
92inline CRGB hsv2rgb_spectrum( const struct CHSV& hsv) {
93 CRGB rgb;
94 hsv2rgb_spectrum(hsv, rgb);
95 return rgb;
96}
97
103void hsv2rgb_spectrum( const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
104
106#define HUE_MAX_SPECTRUM 255
107
108
109
117void hsv2rgb_raw(const struct CHSV& hsv, struct CRGB & rgb);
118
124void hsv2rgb_raw(const struct CHSV* phsv, struct CRGB * prgb, int numLeds);
125
127#define HUE_MAX 191
128
129
165CHSV rgb2hsv_approximate( const CRGB& rgb);
166
167
169
171
172#endif
central include file for FastLED, defines the CFastLED class/object
FASTLED_NAMESPACE_BEGIN 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:485
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:504
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
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:55