MCL
Minimalistic Color Library
 All Classes Files
Color Class Reference
+ Inheritance diagram for Color:

Public Types

typedef il::ColorData Data
 

Public Member Functions

 Color (const CMY &)
 
 Color (const CMYK &)
 
 Color (const HSL &)
 
 Color (const HSV &)
 
 Color (const LAB &)
 
 Color (const LCH &)
 
 Color (const RGB &)
 
 Color (const RGBf &)
 
 Color (const RGBub &)
 
 Color (const XYZ &)
 
Data & data ()
 
const Data & data () const
 
SpaceType type () const
 
double alpha () const
 
double lightness () const
 
template<typename T >
const T & get ()
 
template<typename T >
const T & get (const Environment &)
 
template<typename T >
get () const
 
template<typename T >
get (const Environment &) const
 
template<typename T >
Colorto ()
 
template<typename T >
Colorto (const Environment &)
 
template<typename T >
Color to () const
 
template<typename T >
Color to (const Environment &) const
 
Colorto (SpaceType)
 
Colorto (SpaceType, const Environment &)
 
Color to (SpaceType) const
 
Color to (SpaceType, const Environment &) const
 
void gray ()
 
void grey ()
 
void gray (const Environment &)
 
void grey (const Environment &)
 
Color grayed () const
 
Color greyed () const
 
Color grayed (const Environment &) const
 
Color greyed (const Environment &) const
 
void opaque ()
 
void transparent ()
 
void alpha (double)
 
Color to_opaque () const
 
Color to_transparent () const
 
Color with_alpha (double) const
 
void lightness (double)
 
void lightness (double, const Environment &)
 
Color with_lightness (double) const
 
Color with_lightness (double, const Environment &) const
 
void clamp ()
 
void round (double to=0.001)
 
Color clamped () const
 
Color rounded (double to=0.001) const
 

Static Public Member Functions

template<typename T >
static T grayed (T const &)
 
template<typename T >
static T greyed (T const &)
 
template<typename T >
static T grayed (T const &, const Environment &)
 
template<typename T >
static T greyed (T const &, const Environment &)
 
template<typename T >
static T to_opaque (T const &)
 
template<typename T >
static T to_transparent (T const &)
 
template<typename T >
static T with_alpha (T const &, double)
 
template<typename T >
static T with_lightness (T const &, double)
 
template<typename T >
static T with_lightness (T const &, double, const Environment &)
 
template<typename T >
static T clamped (T const &)
 
template<typename T >
static T rounded (T const &, double to=0.001)
 

Friends

bool operator== (const Color &c1, const Color &c2)
 
bool operator!= (const Color &c1, const Color &c2)
 

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