3 #ifndef GDK_GFX_COLOR_H 4 #define GDK_GFX_COLOR_H 13 using channel_type = float;
15 channel_type r = 0, g = 0, b = 0, a = 1;
37 color(
const channel_type aR,
38 const channel_type aG,
39 const channel_type aB,
40 const channel_type aA = 1);
65 std::ostream &operator<<(std::ostream &stream,
const color &acolor);
static const color Red
opaque red color
Definition: color.h:50
static const color Blue
opaque blue color
Definition: color.h:56
static const color Green
opaque green color
Definition: color.h:52
static const color White
opaque white color
Definition: color.h:48
bool operator!=(const color &aOther) const
equality semantics
static const color CornflowerBlue
an opaque pastel blue color
Definition: color.h:61
static const color DarkGreen
opaque dark green color
Definition: color.h:54
static const color DeathlyPink
Definition: color.h:59
bool operator==(const color &aOther) const
equality semantics
color()=default
constructs a color as opaque black
color & operator=(const color &acolor)=default
copy semantics
Represents a 4 channel color: {Red, Green, Blue, Alpha}.
Definition: color.h:11
static const color Black
opaque black color
Definition: color.h:46