FastLED 3.9.15
Loading...
Searching...
No Matches
fl::hsv8 Struct Reference

Detailed Description

Representation of an HSV pixel (hue, saturation, value (aka brightness)).

Definition at line 16 of file hsv.h.

#include <hsv.h>

Public Member Functions

constexpr hsv8 () FL_NOEXCEPT
 Default constructor.
 
constexpr hsv8 (const hsv8 &rhs) FL_NOEXCEPT
 Allow copy construction.
 
constexpr hsv8 (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NOEXCEPT
 Allow construction from hue, saturation, and value.
 
hsv8operator= (const hsv8 &rhs) FL_NOEXCEPT=default
 Allow copy construction.
 
FASTLED_FORCE_INLINE const fl::u8operator[] (fl::u8 x) const FL_NOEXCEPT
 Array access operator to index into the hsv8 object.
 
FASTLED_FORCE_INLINE fl::u8operator[] (fl::u8 x) FL_NOEXCEPT
 Array access operator to index into the hsv8 object.
 
FASTLED_FORCE_INLINE hsv8setHSV (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NOEXCEPT
 Assign new HSV values.
 

Public Attributes

union { 
 
   struct { 
 
      union { 
 
fl::u8 h
 Color hue.
 
fl::u8 hue
 Color hue.
 
      }  
 
      union { 
 
fl::u8 v
 Color value (brightness).
 
fl::u8 val
 Color value (brightness).
 
fl::u8 value
 Color value (brightness).
 
      }  
 
      union { 
 
fl::u8 s
 Color saturation.
 
fl::u8 sat
 Color saturation.
 
fl::u8 saturation
 Color saturation.
 
      }  
 
   }  
 
fl::u8 raw [3]
 Access the hue, saturation, and value data as an array.
 
};  
 

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