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

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

Public Member Functions

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

Public Attributes

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

Detailed Description

Color represented by L* (lightness), a*, b*

Definition at line 719 of file al_Color.hpp.

Constructor & Destructor Documentation

◆ Lab() [1/8]

al::Lab::Lab ( float  l = 1,
float  a = 1,
float  b = 1 
)
inline
Parameters
[in]lLightness
[in]aa
[in]bb

Definition at line 737 of file al_Color.hpp.

◆ Lab() [2/8]

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

Definition at line 741 of file al_Color.hpp.

◆ Lab() [3/8]

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

Definition at line 744 of file al_Color.hpp.

◆ Lab() [4/8]

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

Definition at line 747 of file al_Color.hpp.

◆ Lab() [5/8]

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

Definition at line 750 of file al_Color.hpp.

◆ Lab() [6/8]

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

Definition at line 753 of file al_Color.hpp.

◆ Lab() [7/8]

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

Definition at line 756 of file al_Color.hpp.

◆ Lab() [8/8]

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

Definition at line 759 of file al_Color.hpp.

Member Data Documentation

◆ b

float al::Lab::b

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

Definition at line 725 of file al_Color.hpp.


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