FastLED 3.10.8
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_NO_EXCEPT
 Default constructor.
 
constexpr hsv8 (const hsv8 &rhs) FL_NO_EXCEPT
 Allow copy construction.
 
constexpr hsv8 (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NO_EXCEPT
 Allow construction from hue, saturation, and value.
 
hsv8 & operator= (const hsv8 &rhs) FL_NO_EXCEPT=default
 Allow copy construction.
 
FASTLED_FORCE_INLINE const fl::u8 & operator[] (fl::u8 x) const FL_NO_EXCEPT
 Array access operator to index into the hsv8 object.
 
FASTLED_FORCE_INLINE fl::u8 & operator[] (fl::u8 x) FL_NO_EXCEPT
 Array access operator to index into the hsv8 object.
 
FASTLED_FORCE_INLINE hsv8 & setHSV (fl::u8 ih, fl::u8 is, fl::u8 iv) FL_NO_EXCEPT
 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.
 
};  
 

Friends

FASTLED_FORCE_INLINE bool operator!= (const hsv8 &lhs, const hsv8 &rhs) FL_NO_EXCEPT
 Compare two HSV colors field by field.
 
FASTLED_FORCE_INLINE bool operator== (const hsv8 &lhs, const hsv8 &rhs) FL_NO_EXCEPT
 Compare two HSV colors field by field.
 

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