#include <color.h>
|
union { | |
|
struct { | |
|
union { | |
|
uint8_t r | |
|
uint8_t red | |
|
} | | |
|
union { | |
|
uint8_t g | |
|
uint8_t green | |
|
} | | |
|
union { | |
|
uint8_t b | |
|
uint8_t blue | |
|
} | | |
|
union { | |
|
uint8_t w | |
|
uint8_t white | |
|
} | | |
|
} | | |
|
uint8_t raw [4] | |
|
uint32_t raw_32 | |
|
}; | | |
|
Definition at line 10 of file color.h.
◆ Color() [1/4]
esphome::Color::Color |
( |
| ) |
|
|
inline |
◆ Color() [2/4]
esphome::Color::Color |
( |
uint8_t | red, |
|
|
uint8_t | green, |
|
|
uint8_t | blue ) |
|
inline |
◆ Color() [3/4]
esphome::Color::Color |
( |
uint8_t | red, |
|
|
uint8_t | green, |
|
|
uint8_t | blue, |
|
|
uint8_t | white ) |
|
inline |
◆ Color() [4/4]
esphome::Color::Color |
( |
uint32_t | colorcode | ) |
|
|
inlineexplicit |
◆ darken()
Color esphome::Color::darken |
( |
uint8_t | delta | ) |
|
|
inline |
◆ fade_to_black()
Color esphome::Color::fade_to_black |
( |
uint8_t | amnt | ) |
|
|
inline |
◆ fade_to_white()
Color esphome::Color::fade_to_white |
( |
uint8_t | amnt | ) |
|
|
inline |
◆ gradient()
Color esphome::Color::gradient |
( |
const Color & | to_color, |
|
|
uint8_t | amnt ) |
|
inline |
◆ is_on()
bool esphome::Color::is_on |
( |
| ) |
|
|
inline |
◆ lighten()
Color esphome::Color::lighten |
( |
uint8_t | delta | ) |
|
|
inline |
◆ operator!=() [1/2]
bool esphome::Color::operator!= |
( |
const Color & | rhs | ) |
|
|
inline |
◆ operator!=() [2/2]
bool esphome::Color::operator!= |
( |
uint32_t | colorcode | ) |
|
|
inline |
◆ operator*() [1/2]
Color esphome::Color::operator* |
( |
const Color & | scale | ) |
const |
|
inline |
◆ operator*() [2/2]
Color esphome::Color::operator* |
( |
uint8_t | scale | ) |
const |
|
inline |
◆ operator*=() [1/2]
Color & esphome::Color::operator*= |
( |
const Color & | scale | ) |
|
|
inline |
◆ operator*=() [2/2]
Color & esphome::Color::operator*= |
( |
uint8_t | scale | ) |
|
|
inline |
◆ operator+() [1/2]
Color esphome::Color::operator+ |
( |
const Color & | add | ) |
const |
|
inline |
◆ operator+() [2/2]
Color esphome::Color::operator+ |
( |
uint8_t | add | ) |
const |
|
inline |
◆ operator+=() [1/2]
Color & esphome::Color::operator+= |
( |
const Color & | add | ) |
|
|
inline |
◆ operator+=() [2/2]
Color & esphome::Color::operator+= |
( |
uint8_t | add | ) |
|
|
inline |
◆ operator-() [1/2]
Color esphome::Color::operator- |
( |
const Color & | subtract | ) |
const |
|
inline |
◆ operator-() [2/2]
Color esphome::Color::operator- |
( |
uint8_t | subtract | ) |
const |
|
inline |
◆ operator-=() [1/2]
Color & esphome::Color::operator-= |
( |
const Color & | subtract | ) |
|
|
inline |
◆ operator-=() [2/2]
Color & esphome::Color::operator-= |
( |
uint8_t | subtract | ) |
|
|
inline |
◆ operator==() [1/2]
bool esphome::Color::operator== |
( |
const Color & | rhs | ) |
|
|
inline |
◆ operator==() [2/2]
bool esphome::Color::operator== |
( |
uint32_t | colorcode | ) |
|
|
inline |
◆ operator[]()
uint8_t & esphome::Color::operator[] |
( |
uint8_t | x | ) |
|
|
inline |
◆ operator~()
Color esphome::Color::operator~ |
( |
| ) |
const |
|
inline |
◆ random_color()
static Color esphome::Color::random_color |
( |
| ) |
|
|
inlinestatic |
◆ [union]
uint8_t esphome::Color::b |
◆ BLACK
const Color esphome::Color::BLACK |
|
static |
◆ blue
uint8_t esphome::Color::blue |
uint8_t esphome::Color::g |
◆ green
uint8_t esphome::Color::green |
uint8_t esphome::Color::r |
◆ raw
uint8_t esphome::Color::raw[4] |
◆ raw_32
uint32_t esphome::Color::raw_32 |
◆ red
uint8_t esphome::Color::red |
uint8_t esphome::Color::w |
◆ WHITE
const Color esphome::Color::WHITE |
|
static |
◆ white
uint8_t esphome::Color::white |
The documentation for this struct was generated from the following files: