WRGB 32bits.
More...
#include <unit_LED_data.hpp>
|
| constexpr | Color (const wrgb32_color_t c=0) |
| | Constructor from packed WRGB.
|
| |
| constexpr | Color (const uint8_t rr, const uint8_t gg, const uint8_t bb, const uint8_t ww=0) |
| | Constructor from RGB / RGBW components.
|
| |
| constexpr | operator wrgb32_color_t () const |
| | Convert to packed WRGB.
|
| |
|
| static Color | fromHSV (const uint8_t h, const uint8_t s, const uint8_t v) |
| | Make Color from HSV.
|
| |
|
|
wrgb32_color_t | wrgb {} |
| | WRGB 32bits.
|
| |
|
struct { | |
| |
|
uint8_t b | |
| | Blue.
|
| |
|
uint8_t g | |
| | Green.
|
| |
|
uint8_t r | |
| | Red.
|
| |
|
uint8_t w | |
| | White.
|
| |
| }; | | |
| |
|
uint8_t | a [4] |
| | Array.
|
| |
◆ Color() [1/2]
Constructor from packed WRGB.
- Parameters
-
◆ Color() [2/2]
| m5::unit::rgb::Color::Color |
( |
const uint8_t | rr, |
|
|
const uint8_t | gg, |
|
|
const uint8_t | bb, |
|
|
const uint8_t | ww = 0 ) |
|
inlineconstexpr |
Constructor from RGB / RGBW components.
- Parameters
-
| rr | Red |
| gg | Green |
| bb | Blue |
| ww | White (default 0) |
◆ fromHSV()
| static Color m5::unit::rgb::Color::fromHSV |
( |
const uint8_t | h, |
|
|
const uint8_t | s, |
|
|
const uint8_t | v ) |
|
inlinestatic |
◆ operator wrgb32_color_t()
Convert to packed WRGB.
- Returns
- WRGB 32bits