FastLED 3.9.15
Loading...
Searching...
No Matches
CHSV Struct Reference

Detailed Description

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

Examples
AnalogOutput.ino, ColorPalette.ino, Cylon.ino, DemoReel100.ino, Noise.ino, Pride2015.ino, RGBSetDemo.ino, and XYMatrix.ino.

Definition at line 15 of file hsv.h.

#include <hsv.h>

Public Member Functions

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

Public Attributes

union { 
 
   struct { 
 
      union { 
 
fl::u8 v
 Color value (brightness).
 
fl::u8 val
 Color value (brightness).
 
fl::u8 value
 Color value (brightness).
 
      }  
 
      union { 
 
fl::u8 h
 Color hue.
 
fl::u8 hue
 Color hue.
 
      }  
 
      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: