51 Colour(
const double &
r,
const double &
g,
const double &
b,
const double &
a);
62 Colour(
const int &
r,
const int &
g,
const int &
b,
const int &
a);
82 const double &
r()
const;
88 const double &
g()
const;
94 const double &
b()
const;
100 const double &
a()
const;
103 bool operator==(
const Colour &other)
const;
116 std::array<double, 4> data_;
define a RGBA colour
Definition Colour.hpp:34
Colour()
construct a black Colour
static Colour black
define black colour
Definition Colour.hpp:128
Colour(const double &r, const double &g, const double &b, const double &a)
constructor
Colour(const int &hex)
constructor
const double & b() const
return the blue part
static Colour createFromHex(const int &hex)
[brief description]
static Colour cyan
define cyan colour
Definition Colour.hpp:132
static Colour blue
define blue colour
Definition Colour.hpp:122
static Colour yellow
define yellow colour
Definition Colour.hpp:126
static Colour mix(const double &weight, const Colour &colour1, const Colour &colour2)
[brief description]
static Colour red
define red colour
Definition Colour.hpp:120
const double & r() const
return the red part
const double & a() const
return the alpha part
Colour(const std::array< double, 4 > &c)
internal constructor
static Colour white
define white colour
Definition Colour.hpp:130
const double & g() const
return the green part
static Colour green
define green colour
Definition Colour.hpp:124
Colour(const int &r, const int &g, const int &b, const int &a)
constructor
virtual ~Colour()
destructor
static Colour pink
define pink colour
Definition Colour.hpp:134