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

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

Public Member Functions

 Luv (float l=1, float u=1, float v=1)
 
template<class T >
 Luv (const T *Luv)
 
 Luv (const Color &w)
 
 Luv (const Colori &w)
 
 Luv (const RGB &w)
 
 Luv (const HSV &w)
 
 Luv (const CIE_XYZ &w)
 
 Luv (const HCLuv &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.
 
Luvoperator= (const Color &w)
 Set from RGBA color.
 
Luvoperator= (const Colori &w)
 Set from RGBA color.
 
Luvoperator= (const CIE_XYZ &w)
 Set from CIE_XYZ color.
 
Luvoperator= (const HCLuv &w)
 Set from HCLuv color.
 
Luvoperator= (const RGB &w)
 Set from RGB color.
 
Luvoperator= (const HSV &w)
 Set from HSV color.
 
Luv operator* (float a) const
 Get new Luv with value component multiplied by a scalar.
 
Luvoperator*= (float a)
 Multiply lightness component by a scalar.
 

Public Attributes

union {
   struct {
      float   l
 
      float   u
 < Lightness component in [0, 100]
 
      float   v
 
   } 
 
   float   components [3]
 
}; 
 

Detailed Description

Color represented by L* (lightness), u*, v*

Definition at line 891 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ Luv() [1/8]

al::Luv::Luv ( float  l = 1,
float  u = 1,
float  v = 1 
)
inline
Parameters
[in]lLightness
[in]uu
[in]vv

Definition at line 909 of file al_Color.hpp.

◆ Luv() [2/8]

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

Definition at line 913 of file al_Color.hpp.

◆ Luv() [3/8]

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

Definition at line 916 of file al_Color.hpp.

◆ Luv() [4/8]

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

Definition at line 919 of file al_Color.hpp.

◆ Luv() [5/8]

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

Definition at line 922 of file al_Color.hpp.

◆ Luv() [6/8]

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

Definition at line 925 of file al_Color.hpp.

◆ Luv() [7/8]

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

Definition at line 928 of file al_Color.hpp.

◆ Luv() [8/8]

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

Definition at line 931 of file al_Color.hpp.

Member Data Documentation

◆ v

float al::Luv::v

< red-green axis (red is positive, green is negative) range in [-82.7886, 174.378] (8-bit rgb gamut)

Definition at line 897 of file al_Color.hpp.


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