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

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

Public Member Functions

 HCLab (float h=1, float c=1, float l=1)
 
template<class T >
 HCLab (const T *HCLab)
 
 HCLab (const Color &v)
 
 HCLab (const Colori &v)
 
 HCLab (const RGB &v)
 
 HCLab (const HSV &v)
 
 HCLab (const CIE_XYZ &v)
 
 HCLab (const Lab &v)
 
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.
 
HCLaboperator= (const Color &v)
 Set from RGBA color.
 
HCLaboperator= (const Colori &v)
 Set from RGBA color.
 
HCLaboperator= (const RGB &v)
 Set from RGB color.
 
HCLaboperator= (const HSV &v)
 Set from HSV color.
 
HCLaboperator= (const CIE_XYZ &v)
 Set from CIE_XYZ color.
 
HCLaboperator= (const Lab &v)
 Set from Lab color.
 
HCLab operator* (float a) const
 Get new HCLab with value component multiplied by a scalar.
 
HCLaboperator*= (float a)
 Multiply luminance component by a scalar.
 
HCLabrotateHue (float dh)
 Rotate hue in interval [0, 1)
 
HCLabwrapHue ()
 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(ab)

Definition at line 797 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ HCLab() [1/8]

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

Definition at line 814 of file al_Color.hpp.

◆ HCLab() [2/8]

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

Definition at line 818 of file al_Color.hpp.

◆ HCLab() [3/8]

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

Definition at line 821 of file al_Color.hpp.

◆ HCLab() [4/8]

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

Definition at line 824 of file al_Color.hpp.

◆ HCLab() [5/8]

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

Definition at line 827 of file al_Color.hpp.

◆ HCLab() [6/8]

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

Definition at line 830 of file al_Color.hpp.

◆ HCLab() [7/8]

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

Definition at line 833 of file al_Color.hpp.

◆ HCLab() [8/8]

al::HCLab::HCLab ( const Lab v)
inline
Parameters
[in]vLab color to convert from

Definition at line 836 of file al_Color.hpp.

Member Data Documentation

◆ h

float al::HCLab::h

ranges normalized to 8-bit RGB gamut using 16million RGB color image from http://brucelindbloom.com

Definition at line 802 of file al_Color.hpp.

◆ l

float al::HCLab::l

< chroma component range in [0, 1]

Definition at line 805 of file al_Color.hpp.


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