16 Color(
const float _r= 0.f,
const float _g= 0.f,
const float _b= 0.f,
const float _a= 1.f ) : r(_r), g(_g), b(_b), a(_a) {}
18 Color(
const Color& color,
const float alpha ) : r(color.r), g(color.g), b(color.b), a(alpha) {}
38 Color operator* (
const Color& c,
const float k );
39 Color operator* (
const float k,
const Color& c );
41 Color operator/ (
const float k,
const Color& c );
42 Color operator/ (
const Color& c,
const float k );
Color(const Color &color, const float alpha)
cree une couleur avec les memes composantes que color, mais remplace sa composante alpha (color...
Color Black()
utilitaire. renvoie une couleur noire.
representation d'une couleur (rgba) transparente ou opaque.
Color White()
utilitaire. renvoie une couleur blanche.
Color Red()
utilitaire. renvoie une couleur rouge.
Color Green()
utilitaire. renvoie une couleur verte.
Color(const float _r=0.f, const float _g=0.f, const float _b=0.f, const float _a=1.f)
constructeur par defaut.
Color Blue()
utilitaire. renvoie une couleur bleue.