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.
Numeric::float64 a() const
Numeric::float64 g() const
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).
Numeric::float64 r() const
void set_g(T g)
Sets the green component.
GenColor(const T *rhs)
GenColor constructor from T array.
Numeric::float64 b() const
GenColor & operator=(const superclass &rhs)
assignment operator.
GenColor(const superclass &rhs)
GenColor copy constructor.
vecng()
Default vector constructor.
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.