#include <Rgb48Color.h>
Public Types | |
typedef NeoRgbCurrentSettings | SettingsObject |
Public Member Functions | |
Rgb48Color (uint16_t r, uint16_t g, uint16_t b) | |
Rgb48Color (uint16_t brightness) | |
Rgb48Color (const RgbColor &color) | |
Rgb48Color (const RgbwColor &color) | |
Rgb48Color (const Rgbw64Color &color) | |
Rgb48Color (const HtmlColor &color) | |
Rgb48Color (const HslColor &color) | |
Rgb48Color (const HsbColor &color) | |
Rgb48Color () | |
bool | operator== (const Rgb48Color &other) const |
bool | operator!= (const Rgb48Color &other) const |
int32_t | CompareTo (const Rgb48Color &other, uint16_t epsilon=256) |
uint16_t | operator[] (size_t idx) const |
uint16_t & | operator[] (size_t idx) |
uint16_t | CalculateBrightness () const |
Rgb48Color | Dim (uint16_t ratio) const |
Rgb48Color | Dim (uint8_t ratio) const |
Rgb48Color | Brighten (uint16_t ratio) const |
Rgb48Color | Brighten (uint8_t ratio) const |
void | Darken (uint16_t delta) |
void | Lighten (uint16_t delta) |
uint32_t | CalcTotalTenthMilliAmpere (const SettingsObject &settings) |
Static Public Member Functions | |
static int32_t | Compare (const Rgb48Color &left, const Rgb48Color &right, uint16_t epsilon=256) |
static Rgb48Color | LinearBlend (const Rgb48Color &left, const Rgb48Color &right, float progress) |
static Rgb48Color | LinearBlend (const Rgb48Color &left, const Rgb48Color &right, uint8_t progress) |
static Rgb48Color | BilinearBlend (const Rgb48Color &c00, const Rgb48Color &c01, const Rgb48Color &c10, const Rgb48Color &c11, float x, float y) |
Public Attributes | |
uint16_t | R |
uint16_t | G |
uint16_t | B |
Static Public Attributes | |
static const uint16_t | Max = 65535 |
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 |
|
inlineexplicit |
|
explicit |
|
inline |
Rgb48Color::Rgb48Color | ( | const HslColor & | color | ) |
Rgb48Color::Rgb48Color | ( | const HsbColor & | color | ) |
|
inline |
|
static |
Rgb48Color Rgb48Color::Brighten | ( | uint16_t | ratio | ) | const |
|
inline |
|
inline |
uint16_t Rgb48Color::CalculateBrightness | ( | ) | const |
|
inlinestatic |
|
inline |
void Rgb48Color::Darken | ( | uint16_t | delta | ) |
Rgb48Color Rgb48Color::Dim | ( | uint16_t | ratio | ) | const |
|
inline |
void Rgb48Color::Lighten | ( | uint16_t | delta | ) |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
uint16_t Rgb48Color::B |
|
static |
uint16_t Rgb48Color::G |
|
static |
uint16_t Rgb48Color::R |