FastLED 3.9.7
Loading...
Searching...
No Matches
ColorHSV Struct Reference

Detailed Description

Definition at line 56 of file color.h.

Public Member Functions

 ColorHSV (float h, float s, float v)
 
 ColorHSV (const Color3i &color)
 
ColorHSVoperator= (const Color3i &color)
 
 ColorHSV (const ColorHSV &other)
 
void Set (const ColorHSV &other)
 
void Set (float h, float s, float v)
 
template<typename PrintStream >
void Print (PrintStream *stream)
 
bool operator== (const ColorHSV &other) const
 
bool operator!= (const ColorHSV &other) const
 
void FromRGB (const Color3i &rgb)
 
Color3i ToRGB () const
 

Public Attributes

float h_
 
float s_
 
float v_
 

Constructor & Destructor Documentation

◆ ColorHSV() [1/4]

ColorHSV::ColorHSV ( )
inline

Definition at line 57 of file color.h.

◆ ColorHSV() [2/4]

ColorHSV::ColorHSV ( float h,
float s,
float v )
inline

Definition at line 58 of file color.h.

◆ ColorHSV() [3/4]

ColorHSV::ColorHSV ( const Color3i & color)
inlineexplicit

Definition at line 61 of file color.h.

◆ ColorHSV() [4/4]

ColorHSV::ColorHSV ( const ColorHSV & other)
inline

Definition at line 68 of file color.h.

Member Function Documentation

◆ FromRGB()

void ColorHSV::FromRGB ( const Color3i & rgb)

Definition at line 101 of file color.cpp.

◆ operator!=()

bool ColorHSV::operator!= ( const ColorHSV & other) const
inline

Definition at line 91 of file color.h.

◆ operator=()

ColorHSV & ColorHSV::operator= ( const Color3i & color)
inline

Definition at line 64 of file color.h.

◆ operator==()

bool ColorHSV::operator== ( const ColorHSV & other) const
inline

Definition at line 88 of file color.h.

◆ Print()

template<typename PrintStream >
void ColorHSV::Print ( PrintStream * stream)
inline

Definition at line 81 of file color.h.

◆ Set() [1/2]

void ColorHSV::Set ( const ColorHSV & other)
inline

Definition at line 71 of file color.h.

◆ Set() [2/2]

void ColorHSV::Set ( float h,
float s,
float v )
inline

Definition at line 74 of file color.h.

◆ ToRGB()

Color3i ColorHSV::ToRGB ( ) const

Definition at line 128 of file color.cpp.

Member Data Documentation

◆ h_

float ColorHSV::h_

Definition at line 98 of file color.h.

◆ s_

float ColorHSV::s_

Definition at line 98 of file color.h.

◆ v_

float ColorHSV::v_

Definition at line 98 of file color.h.


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