blob: 6b5488819aeabc27c8c2aed25f5b60432b436fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
namespace crepe {
class Color {
// FIXME: can't these colors be defined as a `static constexpr const Color`
// instead?
public:
Color(double red, double green, double blue, double alpha);
static const Color & get_white();
static const Color & get_red();
static const Color & get_green();
static const Color & get_blue();
static const Color & get_cyan();
static const Color & get_magenta();
static const Color & get_yellow();
static const Color & get_black();
private:
double r;
double g;
double b;
double a;
static Color white;
static Color red;
static Color green;
static Color blue;
static Color cyan;
static Color magenta;
static Color yellow;
static Color black;
};
} // namespace crepe
|