MCL
Minimalistic Color Library
 All Classes Files
LAB Class Reference

l: [0..100]; a: [-120..120]; b: [-120..120]; alpha: [0..1]

#include <nauths/mcl/spaces/lab.hh>

+ Inheritance diagram for LAB:

Public Types

enum  Key { L = 0, A = 1, B = 2, ALPHA = 3 }
 
typedef double Value
 
typedef XYZ Reference
 
typedef std::array< Value, 4 > Super
 

Public Member Functions

 LAB (Value l, Value a, Value b)
 
 LAB (Value l, Value a, Value b, Value alpha)
 
Value l () const
 
Value a () const
 
Value b () const
 
Value & l ()
 
Value & a ()
 
Value & b ()
 
Value alpha () const
 
Value & alpha ()
 
void l (Value x)
 
void a (Value x)
 
void b (Value x)
 
void alpha (Value x)
 
void clamp ()
 
LAB clamped () const
 
void round (double to=0.001)
 
LAB rounded (double to=0.001) const
 

Static Public Member Functions

static SpaceType type ()
 

Public Attributes

elements
 STL member.
 

The documentation for this class was generated from the following files: