87 return r == color.
r &&
g == color.
g &&
b == color.
b &&
a == color.
a;
101 return !(*
this == color);
129 #endif // GK_COLOR_HPP_ static const Color Transparent
Transparent (black) predefined color.
static const Color Green
Green predefined color.
Color()=default
Default constructor.
Color operator+(const Color &c)
Overload of the binary + operator.
static const Color Yellow
Yellow predefined color.
static const Color Cyan
Cyan predefined color.
Utility class for manipulating RGBA colors.
static const Color Magenta
Magenta predefined color.
float a
Alpha (opacity) component.
static const Color White
White predefined color.
bool operator==(const Color &color) const
Overload of binary operator ==.
static const Color Blue
Blue predefined color.
static const Color Black
Black predefined color.
Color operator-(const Color &c)
Overload of the binary - operator.
bool operator!=(const Color &color) const
Overload of binary operator !=.
static const Color Red
Red predefined color.