FastLED 3.9.15
|
Structs that hold pixel color data.
Classes | |
struct | CHSV |
Representation of an HSV pixel (hue, saturation, value (aka brightness)). More... | |
union | CHSV.__unnamed0__ |
struct | CHSV.__unnamed0__.__unnamed0__ |
union | CHSV.__unnamed0__.__unnamed0__.__unnamed0__ |
union | CHSV.__unnamed0__.__unnamed0__.__unnamed1__ |
union | CHSV.__unnamed0__.__unnamed0__.__unnamed2__ |
struct | CRGB |
Representation of an RGB pixel (Red, Green, Blue) More... | |
union | CRGB.__unnamed0__ |
struct | CRGB.__unnamed0__.__unnamed0__ |
union | CRGB.__unnamed0__.__unnamed0__.__unnamed0__ |
union | CRGB.__unnamed0__.__unnamed0__.__unnamed1__ |
union | CRGB.__unnamed0__.__unnamed0__.__unnamed2__ |
Enumerations | |
enum | HSVHue { HUE_RED = 0 , HUE_ORANGE = 32 , HUE_YELLOW = 64 , HUE_GREEN = 96 , HUE_AQUA = 128 , HUE_BLUE = 160 , HUE_PURPLE = 192 , HUE_PINK = 224 } |
Pre-defined hue values for CHSV objects. More... | |
Functions | |
void | hsv2rgb_rainbow (const struct CHSV &hsv, struct CRGB &rgb) |
Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies. | |
FASTLED_FORCE_INLINE bool | operator!= (const CHSV &lhs, const CHSV &rhs) |
Check if two CHSV objects do not have the same color data. | |
FASTLED_FORCE_INLINE bool | operator!= (const CRGB &lhs, const CRGB &rhs) |
Check if two CRGB objects do not have the same color data. | |
FASTLED_FORCE_INLINE CRGB | operator% (const CRGB &p1, uint8_t d) |
Scale using CRGB::nscale8_video() | |
FASTLED_FORCE_INLINE CRGB | operator& (const CRGB &p1, const CRGB &p2) |
Combine two CRGB objects, taking the smallest value of each channel. | |
FASTLED_FORCE_INLINE CRGB | operator* (const CRGB &p1, uint8_t d) |
Multiply each of the channels by a constant, saturating each channel at 0xFF. | |
FASTLED_FORCE_INLINE CRGB | operator+ (const CRGB &p1, const CRGB &p2) |
Add one CRGB to another, saturating at 0xFF for each channel. | |
FASTLED_FORCE_INLINE CRGB | operator- (const CRGB &p1, const CRGB &p2) |
Subtract one CRGB from another, saturating at 0x00 for each channel. | |
FASTLED_FORCE_INLINE CRGB | operator/ (const CRGB &p1, uint8_t d) |
Divide each of the channels by a constant. | |
FASTLED_FORCE_INLINE bool | operator< (const CRGB &lhs, const CRGB &rhs) |
Check if the sum of the color channels in one CRGB object is less than another. | |
FASTLED_FORCE_INLINE bool | operator<= (const CRGB &lhs, const CRGB &rhs) |
Check if the sum of the color channels in one CRGB object is less than or equal to another. | |
FASTLED_FORCE_INLINE bool | operator== (const CHSV &lhs, const CHSV &rhs) |
Check if two CHSV objects have the same color data. | |
FASTLED_FORCE_INLINE bool | operator== (const CRGB &lhs, const CRGB &rhs) |
Check if two CRGB objects have the same color data. | |
FASTLED_FORCE_INLINE bool | operator> (const CRGB &lhs, const CRGB &rhs) |
Check if the sum of the color channels in one CRGB object is greater than another. | |
FASTLED_FORCE_INLINE bool | operator>= (const CRGB &lhs, const CRGB &rhs) |
Check if the sum of the color channels in one CRGB object is greater than or equal to another. | |
FASTLED_FORCE_INLINE CRGB | operator| (const CRGB &p1, const CRGB &p2) |
Combine two CRGB objects, taking the largest value of each channel. | |
Where:
raw[0]
is the hueraw[1]
is the saturationraw[2]
is the value struct CHSV.__unnamed0__.__unnamed0__ |
Class Members | ||
---|---|---|
union CHSV.__unnamed0__.__unnamed0__.__unnamed2__ | __unnamed__ | |
union CHSV.__unnamed0__.__unnamed0__.__unnamed0__ | __unnamed__ | |
union CHSV.__unnamed0__.__unnamed0__.__unnamed1__ | __unnamed__ |
union CHSV.__unnamed0__.__unnamed0__.__unnamed0__ |
union CHSV.__unnamed0__.__unnamed0__.__unnamed1__ |
union CHSV.__unnamed0__.__unnamed0__.__unnamed2__ |
union CRGB.__unnamed0__ |
Class Members | ||
---|---|---|
struct CRGB.__unnamed0__.__unnamed0__ | __unnamed__ | |
uint8_t | raw[3] |
Access the red, green, and blue data as an array. Where:
|
struct CRGB.__unnamed0__.__unnamed0__ |
Class Members | ||
---|---|---|
union CRGB.__unnamed0__.__unnamed0__.__unnamed1__ | __unnamed__ | |
union CRGB.__unnamed0__.__unnamed0__.__unnamed0__ | __unnamed__ | |
union CRGB.__unnamed0__.__unnamed0__.__unnamed2__ | __unnamed__ |
union CRGB.__unnamed0__.__unnamed0__.__unnamed0__ |
union CRGB.__unnamed0__.__unnamed0__.__unnamed1__ |
union CRGB.__unnamed0__.__unnamed0__.__unnamed2__ |
enum HSVHue |
Pre-defined hue values for CHSV objects.
Enumerator | |
---|---|
HUE_RED | Red (0°) |
HUE_ORANGE | Orange (45°) |
HUE_YELLOW | Yellow (90°) |
HUE_GREEN | Green (135°) |
HUE_AQUA | Aqua (180°) |
HUE_BLUE | Blue (225°) |
HUE_PURPLE | Purple (270°) |
HUE_PINK | Pink (315°) |
Definition at line 97 of file chsv.h.
Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies.
Convert an HSV value to RGB using a visually balanced rainbow. This "rainbow" yields better yellow and orange than a straight mathematical "spectrum".
hsv | CHSV struct to convert to RGB. Max hue supported is HUE_MAX_RAINBOW |
rgb | CRGB struct to store the result of the conversion (will be modified) |
Referenced by CRGB::CRGB(), CRGB::operator=(), CRGB::setHSV(), and CRGB::setHue().
FASTLED_FORCE_INLINE bool operator!= | ( | const CHSV & | lhs, |
const CHSV & | rhs ) |
Check if two CHSV objects do not have the same color data.
Definition at line 669 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator!= | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if two CRGB objects do not have the same color data.
Definition at line 657 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE CRGB operator% | ( | const CRGB & | p1, |
uint8_t | d ) |
Scale using CRGB::nscale8_video()
Definition at line 224 of file crgb.hpp.
References FASTLED_FORCE_INLINE, and CRGB::nscale8_video().
FASTLED_FORCE_INLINE CRGB operator& | ( | const CRGB & | p1, |
const CRGB & | p2 ) |
Combine two CRGB objects, taking the smallest value of each channel.
Definition at line 720 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE CRGB operator* | ( | const CRGB & | p1, |
uint8_t | d ) |
Multiply each of the channels by a constant, saturating each channel at 0xFF.
Definition at line 216 of file crgb.hpp.
References FASTLED_FORCE_INLINE, and qmul8().
FASTLED_FORCE_INLINE CRGB operator+ | ( | const CRGB & | p1, |
const CRGB & | p2 ) |
Add one CRGB to another, saturating at 0xFF for each channel.
Definition at line 200 of file crgb.hpp.
References FASTLED_FORCE_INLINE, and qadd8().
FASTLED_FORCE_INLINE CRGB operator- | ( | const CRGB & | p1, |
const CRGB & | p2 ) |
Subtract one CRGB from another, saturating at 0x00 for each channel.
Definition at line 208 of file crgb.hpp.
References FASTLED_FORCE_INLINE, and qsub8().
FASTLED_FORCE_INLINE CRGB operator/ | ( | const CRGB & | p1, |
uint8_t | d ) |
Divide each of the channels by a constant.
Definition at line 713 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator< | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if the sum of the color channels in one CRGB object is less than another.
Definition at line 675 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator<= | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if the sum of the color channels in one CRGB object is less than or equal to another.
Definition at line 702 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator== | ( | const CHSV & | lhs, |
const CHSV & | rhs ) |
Check if two CHSV objects have the same color data.
Definition at line 663 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator== | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if two CRGB objects have the same color data.
Definition at line 651 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator> | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if the sum of the color channels in one CRGB object is greater than another.
Definition at line 684 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE bool operator>= | ( | const CRGB & | lhs, |
const CRGB & | rhs ) |
Check if the sum of the color channels in one CRGB object is greater than or equal to another.
Definition at line 693 of file crgb.h.
References FASTLED_FORCE_INLINE.
FASTLED_FORCE_INLINE CRGB operator| | ( | const CRGB & | p1, |
const CRGB & | p2 ) |
Combine two CRGB objects, taking the largest value of each channel.
Definition at line 728 of file crgb.h.
References FASTLED_FORCE_INLINE.