#include <RgbwColor.h>
Public Types | |
typedef NeoRgbwCurrentSettings | SettingsObject |
Public Member Functions | |
RgbwColor (uint8_t r, uint8_t g, uint8_t b, uint8_t w=0) | |
RgbwColor (uint8_t brightness) | |
RgbwColor (const RgbColor &color) | |
RgbwColor (const HtmlColor &color) | |
RgbwColor (const HslColor &color) | |
RgbwColor (const HsbColor &color) | |
RgbwColor () | |
bool | operator== (const RgbwColor &other) const |
bool | operator!= (const RgbwColor &other) const |
int16_t | CompareTo (const RgbwColor &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 |
RgbwColor | Dim (uint8_t ratio) const |
RgbwColor | 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 RgbwColor &left, const RgbwColor &right, uint8_t epsilon=1) |
static RgbwColor | LinearBlend (const RgbwColor &left, const RgbwColor &right, float progress) |
static RgbwColor | LinearBlend (const RgbwColor &left, const RgbwColor &right, uint8_t progress) |
static RgbwColor | BilinearBlend (const RgbwColor &c00, const RgbwColor &c01, const RgbwColor &c10, const RgbwColor &c11, float x, float y) |
Public Attributes | |
uint8_t | R |
uint8_t | G |
uint8_t | B |
uint8_t | W |
Static Public Attributes | |
static const uint8_t | Max = 255 |
static const size_t | Count = 4 |
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 |
RgbwColor::RgbwColor | ( | const HtmlColor & | color | ) |
RgbwColor::RgbwColor | ( | const HslColor & | color | ) |
RgbwColor::RgbwColor | ( | const HsbColor & | color | ) |
|
inline |
|
static |
RgbwColor RgbwColor::Brighten | ( | uint8_t | ratio | ) | const |
|
inline |
uint8_t RgbwColor::CalculateBrightness | ( | ) | const |
|
inlinestatic |
|
inline |
void RgbwColor::Darken | ( | uint8_t | delta | ) |
RgbwColor RgbwColor::Dim | ( | uint8_t | ratio | ) | const |
|
inline |
|
inline |
void RgbwColor::Lighten | ( | uint8_t | delta | ) |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
uint8_t RgbwColor::B |
|
static |
uint8_t RgbwColor::G |
|
static |
uint8_t RgbwColor::R |
uint8_t RgbwColor::W |