#include <RgbwwColor.h>
Public Types | |
typedef NeoRgbwwCurrentSettings | SettingsObject |
Public Member Functions | |
RgbwwColor (uint8_t r, uint8_t g, uint8_t b, uint8_t warmW=0, uint8_t coolW=0) | |
RgbwwColor (uint8_t brightness) | |
RgbwwColor (const RgbColor &color) | |
RgbwwColor (const RgbwColor &color) | |
RgbwwColor (const HtmlColor &color) | |
RgbwwColor (const HslColor &color) | |
RgbwwColor (const HsbColor &color) | |
RgbwwColor () | |
bool | operator== (const RgbwwColor &other) const |
bool | operator!= (const RgbwwColor &other) const |
int16_t | CompareTo (const RgbwwColor &other, uint8_t epsilon=1) |
uint8_t | operator[] (size_t idx) const |
uint8_t & | operator[] (size_t idx) |
bool | IsMonotone () const |
bool | IsColorLess () const |
uint8_t | CalculateBrightness () const |
RgbwwColor | Dim (uint8_t ratio) const |
RgbwwColor | Brighten (uint8_t ratio) const |
void | Darken (uint8_t delta) |
void | Lighten (uint8_t delta) |
uint16_t | CalcTotalTenthMilliAmpere (const SettingsObject &settings) |
Static Public Member Functions | |
static int16_t | Compare (const RgbwwColor &left, const RgbwwColor &right, uint8_t epsilon=1) |
static RgbwwColor | LinearBlend (const RgbwwColor &left, const RgbwwColor &right, float progress) |
static RgbwwColor | LinearBlend (const RgbwwColor &left, const RgbwwColor &right, uint8_t progress) |
static RgbwwColor | BilinearBlend (const RgbwwColor &c00, const RgbwwColor &c01, const RgbwwColor &c10, const RgbwwColor &c11, float x, float y) |
Public Attributes | |
uint8_t | R |
uint8_t | G |
uint8_t | B |
uint8_t | WW |
uint8_t | CW |
Static Public Attributes | |
static const uint8_t | Max = 255 |
static const size_t | Count = 5 |
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 |
RgbwwColor::RgbwwColor | ( | const HtmlColor & | color | ) |
RgbwwColor::RgbwwColor | ( | const HslColor & | color | ) |
RgbwwColor::RgbwwColor | ( | const HsbColor & | color | ) |
|
inline |
|
static |
RgbwwColor RgbwwColor::Brighten | ( | uint8_t | ratio | ) | const |
|
inline |
uint8_t RgbwwColor::CalculateBrightness | ( | ) | const |
|
inlinestatic |
|
inline |
void RgbwwColor::Darken | ( | uint8_t | delta | ) |
RgbwwColor RgbwwColor::Dim | ( | uint8_t | ratio | ) | const |
|
inline |
|
inline |
void RgbwwColor::Lighten | ( | uint8_t | delta | ) |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
uint8_t RgbwwColor::B |
|
static |
uint8_t RgbwwColor::CW |
uint8_t RgbwwColor::G |
|
static |
uint8_t RgbwwColor::R |
uint8_t RgbwwColor::WW |