Allolib  1.0
C++ Components For Interactive Multimedia
al::HSV Struct Reference

Color represented by hue, saturation, and value. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/types/al_Color.hpp>

Public Member Functions

 HSV (float h=0, float s=1, float v=1)
 
template<class T >
 HSV (const T *hsv)
 
 HSV (const Color &v)
 
 HSV (const Colori &v)
 
 HSV (const RGB &v)
 
 HSV (const CIE_XYZ &xyz)
 
 HSV (const Lab &lab)
 
 HSV (const HCLab &hclab)
 
 HSV (const Luv &luv)
 
 HSV (const HCLuv &hcluv)
 
float & operator[] (int i)
 Set color component at index with no bounds checking.
 
const float & operator[] (int i) const
 Get color component at index with no bounds checking.
 
HSVoperator= (const Color &v)
 Set from RGBA color.
 
HSVoperator= (const Colori &v)
 Set from RGBA color.
 
HSVoperator= (const RGB &v)
 Set from RGB color.
 
HSVoperator= (const CIE_XYZ &v)
 Set from CIE_XYZ color.
 
HSVoperator= (const Lab &v)
 Set from Lab color.
 
HSVoperator= (const HCLab &v)
 Set from HCLab color.
 
HSVoperator= (const Luv &v)
 Set from Luv color.
 
HSVoperator= (const HCLuv &v)
 Set from HCLuv color.
 
HSV operator* (float a) const
 Get new HSV with value component multiplied by a scalar.
 
HSVoperator*= (float a)
 Multiply value component by a scalar.
 
HSVrotateHue (float dh)
 Rotate hue in interval [0, 1)
 
HSVwrapHue ()
 Wrap hue value into valid interval [0, 1)
 

Public Attributes

union {
   struct {
      float   h
 Hue component in [0, 1].
 
      float   s
 Saturation component in [0, 1].
 
      float   v
 Value component in [0, 1].
 
   } 
 
   float   components [3]
 HSV component vector.
 
}; 
 

Detailed Description

Color represented by hue, saturation, and value.

Definition at line 397 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ HSV() [1/10]

al::HSV::HSV ( float  h = 0,
float  s = 1,
float  v = 1 
)
inline
Parameters
[in]hhue
[in]ssaturation
[in]vvalue

Definition at line 410 of file al_Color.hpp.

◆ HSV() [2/10]

template<class T >
al::HSV::HSV ( const T *  hsv)
inline
Parameters
[in]hsv3-vector of HSV components

Definition at line 414 of file al_Color.hpp.

◆ HSV() [3/10]

al::HSV::HSV ( const Color v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 417 of file al_Color.hpp.

◆ HSV() [4/10]

al::HSV::HSV ( const Colori v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 420 of file al_Color.hpp.

◆ HSV() [5/10]

al::HSV::HSV ( const RGB v)
inline
Parameters
[in]vRGB color to convert from

Definition at line 423 of file al_Color.hpp.

◆ HSV() [6/10]

al::HSV::HSV ( const CIE_XYZ xyz)
inline
Parameters
[in]xyzCIE_XYZ color to convert from

Definition at line 426 of file al_Color.hpp.

◆ HSV() [7/10]

al::HSV::HSV ( const Lab lab)
inline
Parameters
[in]labLab color to convert from

Definition at line 429 of file al_Color.hpp.

◆ HSV() [8/10]

al::HSV::HSV ( const HCLab hclab)
inline
Parameters
[in]hclabHCLab color to convert from

Definition at line 432 of file al_Color.hpp.

◆ HSV() [9/10]

al::HSV::HSV ( const Luv luv)
inline
Parameters
[in]luvLuv color to convert from

Definition at line 435 of file al_Color.hpp.

◆ HSV() [10/10]

al::HSV::HSV ( const HCLuv hcluv)
inline
Parameters
[in]hcluvHCLuv color to convert from

Definition at line 438 of file al_Color.hpp.


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