41#ifndef H_OGF_IMAGE_TYPES_COLOR_H 
   42#define H_OGF_IMAGE_TYPES_COLOR_H 
   83            T 
r=0, T 
g=0, T 
b=0, T 
a=1
 
 
   93            superclass::operator=(rhs);
 
 
 
  187        double min_h=0.0,   
double max_h=1.0,
 
  188        double min_s=0.165, 
double max_s=0.4,
 
  189        double min_l=0.4,   
double max_l=0.8
 
vecng< 4, T > superclass
The superclass type.
 
T a() const
Gets the alpha component (transparency).
 
T g() const
Gets the green component.
 
GenColor(T r=0, T g=0, T b=0, T a=1)
GenColor constructor from 4 parameters.
 
void set_r(T r)
Sets the red component.
 
void set_b(T b)
Sets the blue component.
 
void set_a(T a)
Sets the alpha component (transparency).
 
T r() const
Gets the red component.
 
void set_g(T g)
Sets the green component.
 
GenColor(const T *rhs)
GenColor constructor from T array.
 
T b() const
Gets the blue component.
 
GenColor & operator=(const superclass &rhs)
assignment operator.
 
GenColor(const superclass &rhs)
GenColor copy constructor.
 
Specialization of class vecn3 for DIM == 4.
 
Common include file, providing basic definitions. Should be included before anything else by all head...
 
Geometric functions in 2d and 3d.
 
Global Vorpaline namespace.
 
GenColor< Numeric::float64 > Color
Default representation of colors.
 
Color make_random_color(double min_h=0.0, double max_h=1.0, double min_s=0.165, double max_s=0.4, double min_l=0.4, double max_l=0.8)
Constructs a random color.
 
Color make_color_from_hsl(double h, double s, double l)
Constructs a color from hue, saturation and lightness.