18 Color(
float r,
float g,
float b,
float a = 1.0f)
19 : r(r), g(g), b(b), a(a) {}
21 static const inline Color red()
22 {
return Color(1.0f, 0.0f, 0.0f, 1.0f); }
23 static const inline Color green()
24 {
return Color(0.0f, 1.0f, 0.0f, 1.0f); }
25 static const inline Color blue()
26 {
return Color(0.0f, 0.0f, 1.0f, 1.0f); }
27 static const inline Color grey()
28 {
return Color(0.2f, 0.2f, 0.207f, 1.0f); }
29 static const inline Color yellow()
30 {
return Color(1.0f, 1.0f, 0.0f, 1.0f); }
31 static const inline Color white()
32 {
return Color(1.0f, 1.0f, 1.0f, 1.0f); }
33 static const inline Color black()
34 {
return Color(0.0f, 0.0f, 0.0f, 1.0f); }