MCL
Minimalistic Color Library
 All Classes Files
HSL Class Reference

h: [0..360]; s: [0..1]; l: [0..1]; a: [0..1]

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

+ Inheritance diagram for HSL:

Public Types

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

Public Member Functions

 HSL (Value h, Value s, Value l)
 
 HSL (Value h, Value s, Value l, Value a)
 
Value h () const
 
Value s () const
 
Value l () const
 
Value a () const
 
Value & h ()
 
Value & s ()
 
Value & l ()
 
Value & a ()
 
Value alpha () const
 
Value & alpha ()
 
void h (Value x)
 
void s (Value x)
 
void l (Value x)
 
void a (Value x)
 
void alpha (Value x)
 
void clamp ()
 
HSL clamped () const
 
void round (double to=0.001)
 
HSL 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: