#include <Rgb16Color.h>
Public Types | |
typedef NeoRgbCurrentSettings | SettingsObject |
Public Member Functions | |
Rgb16Color (uint8_t r, uint8_t g, uint8_t b) | |
Rgb16Color (uint8_t brightness) | |
Rgb16Color (uint16_t color) | |
Rgb16Color (const RgbColor &color) | |
Rgb16Color (const HtmlColor &color) | |
Rgb16Color (const HslColor &color) | |
Rgb16Color (const HsbColor &color) | |
Rgb16Color () | |
void | setR (uint8_t r) |
uint8_t | getR () const |
void | setG (uint8_t g) |
uint8_t | getG () const |
void | setB (uint8_t b) |
uint8_t | getB () const |
uint8_t | operator[] (size_t idx) const |
bool | operator== (const Rgb16Color &other) const |
bool | operator!= (const Rgb16Color &other) const |
uint8_t | CalculateBrightness () const |
Rgb16Color | Dim (uint8_t ratio) const |
Rgb16Color | Brighten (uint8_t ratio) const |
void | Darken (uint8_t delta) |
void | Lighten (uint8_t delta) |
uint32_t | CalcTotalTenthMilliAmpere (const SettingsObject &settings) |
Static Public Member Functions | |
static Rgb16Color | LinearBlend (const Rgb16Color &left, const Rgb16Color &right, float progress) |
static Rgb16Color | LinearBlend (const Rgb16Color &left, const Rgb16Color &right, uint8_t progress) |
static Rgb16Color | BilinearBlend (const Rgb16Color &c00, const Rgb16Color &c01, const Rgb16Color &c10, const Rgb16Color &c11, float x, float y) |
Public Attributes | |
uint16_t | Color565 |
Static Public Attributes | |
static const uint8_t | Max = 255 |
static const size_t | Count = 3 |
Additional Inherited Members | |
![]() | |
static float | _CalcColor (float p, float q, float t) |
static void | _HslToRgb (const HslColor &color, float *r, float *g, float *b) |
static void | _HsbToRgb (const HsbColor &color, float *r, float *g, float *b) |
template<typename T_COLOR , typename T_RESULT > | |
static T_RESULT | _Compare (const T_COLOR &left, const T_COLOR &right, T_RESULT epsilon) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
uint16_t Rgb16Color::Color565 |
|
static |
|
static |