ESPHome 2025.5.0
Loading...
Searching...
No Matches
esphome::light::ESPHSVColor Struct Reference

#include <esp_hsv_color.h>

Public Member Functions

 ESPHSVColor () ESPHOME_ALWAYS_INLINE
 
 ESPHSVColor (uint8_t hue, uint8_t saturation, uint8_t value) ESPHOME_ALWAYS_INLINE
 
Color to_rgb () const
 

Data Fields

union { 
 
   struct { 
 
      union { 
 
         uint8_t   hue 
 
         uint8_t   h 
 
      }  
 
      union { 
 
         uint8_t   saturation 
 
         uint8_t   s 
 
      }  
 
      union { 
 
         uint8_t   value 
 
         uint8_t   v 
 
      }  
 
   }  
 
   uint8_t   raw [3] 
 
};  
 

Detailed Description

Definition at line 9 of file esp_hsv_color.h.

Constructor & Destructor Documentation

◆ ESPHSVColor() [1/2]

esphome::light::ESPHSVColor::ESPHSVColor ( )
inline

Definition at line 27 of file esp_hsv_color.h.

◆ ESPHSVColor() [2/2]

esphome::light::ESPHSVColor::ESPHSVColor ( uint8_t hue,
uint8_t saturation,
uint8_t value )
inline

Definition at line 29 of file esp_hsv_color.h.

Member Function Documentation

◆ to_rgb()

Color esphome::light::ESPHSVColor::to_rgb ( ) const

Definition at line 6 of file esp_hsv_color.cpp.

Field Documentation

◆ [union]

◆ h

uint8_t esphome::light::ESPHSVColor::h

Definition at line 14 of file esp_hsv_color.h.

◆ hue

uint8_t esphome::light::ESPHSVColor::hue

Definition at line 13 of file esp_hsv_color.h.

◆ raw

uint8_t esphome::light::ESPHSVColor::raw[3]

Definition at line 25 of file esp_hsv_color.h.

◆ s

uint8_t esphome::light::ESPHSVColor::s

Definition at line 18 of file esp_hsv_color.h.

◆ saturation

uint8_t esphome::light::ESPHSVColor::saturation

Definition at line 17 of file esp_hsv_color.h.

◆ v

uint8_t esphome::light::ESPHSVColor::v

Definition at line 22 of file esp_hsv_color.h.

◆ value

uint8_t esphome::light::ESPHSVColor::value

Definition at line 21 of file esp_hsv_color.h.


The documentation for this struct was generated from the following files: