Core 1.0
Public Member Functions | Protected Attributes | Friends | List of all members
Lab Class Reference

Color in Lab space. More...

#include <color.h>

Public Member Functions

 Lab (const double &, const double &, const double &)
 Create a color in Lab space. More...
 
 Lab (const Xyz &)
 Create a color in Lab space from an input XYZ color. More...
 
Xyz ToXyz () const
 Convert to Xyz space.
 

Protected Attributes

double b = 0.0
 Color Lab coefficients.
 

Friends

class Xyz
 

Detailed Description

Color in Lab space.

Constructor & Destructor Documentation

◆ Lab() [1/2]

Lab::Lab ( const double &  l,
const double &  a,
const double &  b 
)
explicit

Create a color in Lab space.

Parameters
l,a,bComponents.

◆ Lab() [2/2]

Lab::Lab ( const Xyz xyz)
explicit

Create a color in Lab space from an input XYZ color.

Parameters
xyzColor.