Allolib  1.0
C++ Components For Interactive Multimedia
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
al::HCLuv Struct Reference

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

Public Member Functions

 HCLuv (float h=1, float c=1, float l=1)
 
template<class T >
 HCLuv (const T *HCLuv)
 
 HCLuv (const Color &w)
 
 HCLuv (const Colori &w)
 
 HCLuv (const RGB &w)
 
 HCLuv (const HSV &w)
 
 HCLuv (const CIE_XYZ &w)
 
 HCLuv (const Luv &w)
 
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.
 
HCLuvoperator= (const Color &w)
 Set from RGBA color.
 
HCLuvoperator= (const Colori &w)
 Set from RGBA color.
 
HCLuvoperator= (const RGB &w)
 Set from RGB color.
 
HCLuvoperator= (const HSV &w)
 Set from HSV color.
 
HCLuvoperator= (const CIE_XYZ &w)
 Set from CIE_XYZ color.
 
HCLuvoperator= (const Luv &w)
 Set from Luv color.
 
HCLuv operator* (float a) const
 Get new HCLuv with value component multiplied by a scalar.
 
HCLuvoperator*= (float a)
 Multiply luminance component by a scalar.
 
HCLuvrotateHue (float dh)
 Rotate hue in interval [0, 1)
 
HCLuvwrapHue ()
 Wrap hue value into valid interval [0, 1)
 

Public Attributes

union {
   struct {
      float   h
 
      float   c
 < hue component in [0, 1]
 
      float   l
 
   } 
 
   float   components [3]
 
}; 
 

Detailed Description

Color represented by hue, chroma, luminance(uv)

Definition at line 970 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ HCLuv() [1/8]

al::HCLuv::HCLuv ( float  h = 1,
float  c = 1,
float  l = 1 
)
inline
Parameters
[in]hhue
[in]cchroma
[in]lluminance(uv)

Definition at line 987 of file al_Color.hpp.

◆ HCLuv() [2/8]

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

Definition at line 991 of file al_Color.hpp.

◆ HCLuv() [3/8]

al::HCLuv::HCLuv ( const Color w)
inline
Parameters
[in]wRGB color to convert from

Definition at line 994 of file al_Color.hpp.

◆ HCLuv() [4/8]

al::HCLuv::HCLuv ( const Colori w)
inline
Parameters
[in]wRGB color to convert from

Definition at line 997 of file al_Color.hpp.

◆ HCLuv() [5/8]

al::HCLuv::HCLuv ( const RGB w)
inline
Parameters
[in]wRGB color to convert from

Definition at line 1000 of file al_Color.hpp.

◆ HCLuv() [6/8]

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

Definition at line 1003 of file al_Color.hpp.

◆ HCLuv() [7/8]

al::HCLuv::HCLuv ( const CIE_XYZ w)
inline
Parameters
[in]vCIE_XYZ color to convert from

Definition at line 1006 of file al_Color.hpp.

◆ HCLuv() [8/8]

al::HCLuv::HCLuv ( const Luv w)
inline
Parameters
[in]wLuv color to convert from

Definition at line 1009 of file al_Color.hpp.

Member Data Documentation

◆ l

float al::HCLuv::l

< chroma component range in [0, 1]

Definition at line 978 of file al_Color.hpp.


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