21 virtual void darken(uint8_t delta) = 0;
27 void set_rgb(uint8_t red, uint8_t green, uint8_t blue) {
32 void set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white) {
33 this->
set_rgb(red, green, blue);
40 ESPColorView(uint8_t *red, uint8_t *green, uint8_t *blue, uint8_t *white, uint8_t *effect_data,
61 if (this->
white_ ==
nullptr)
82 if (this->
white_ ==
nullptr)
87 if (this->
white_ ==
nullptr)
uint8_t color_uncorrect_red(uint8_t red) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_blue(uint8_t blue) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_red(uint8_t red) const ESPHOME_ALWAYS_INLINE
uint8_t color_uncorrect_blue(uint8_t blue) const ESPHOME_ALWAYS_INLINE
uint8_t color_uncorrect_green(uint8_t green) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_green(uint8_t green) const ESPHOME_ALWAYS_INLINE
uint8_t color_correct_white(uint8_t white) const ESPHOME_ALWAYS_INLINE
uint8_t color_uncorrect_white(uint8_t white) const ESPHOME_ALWAYS_INLINE
virtual void set(const Color &color)=0
void set_rgb(uint8_t red, uint8_t green, uint8_t blue)
void set_hsv(const ESPHSVColor &color)
void set_rgbw(uint8_t red, uint8_t green, uint8_t blue, uint8_t white)
virtual void darken(uint8_t delta)=0
virtual void lighten(uint8_t delta)=0
virtual void set_red(uint8_t red)=0
virtual void fade_to_white(uint8_t amnt)=0
void set(const ESPHSVColor &color)
virtual void set_green(uint8_t green)=0
virtual void set_blue(uint8_t blue)=0
virtual void set_white(uint8_t white)=0
virtual void fade_to_black(uint8_t amnt)=0
virtual void set_effect_data(uint8_t effect_data)=0
ESPColorView & operator=(const ESPHSVColor &rhs)
uint8_t get_effect_data() const
ESPColorView(uint8_t *red, uint8_t *green, uint8_t *blue, uint8_t *white, uint8_t *effect_data, const ESPColorCorrection *color_correction)
void fade_to_black(uint8_t amnt) override
void fade_to_white(uint8_t amnt) override
void darken(uint8_t delta) override
void set(const Color &color) override
uint8_t get_white() const
uint8_t get_green() const
void set_effect_data(uint8_t effect_data) override
uint8_t get_blue_raw() const
void set_white(uint8_t white) override
uint8_t get_red_raw() const
ESPColorView & operator=(const Color &rhs)
uint8_t get_green_raw() const
const ESPColorCorrection * color_correction_
uint8_t *const effect_data_
void raw_set_color_correction(const ESPColorCorrection *color_correction)
void set_red(uint8_t red) override
void lighten(uint8_t delta) override
uint8_t get_white_raw() const
void set_blue(uint8_t blue) override
void set_green(uint8_t green) override
Providing packet encoding functions for exchanging data with a remote host.