25 #ifndef SFML_COLOR_HPP
26 #define SFML_COLOR_HPP
31 #include <SFML/Graphics/Export.hpp>
62 Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha = 255);
70 explicit Color(Uint32 color);
78 Uint32 toInteger()
const;
114 SFML_GRAPHICS_API
bool operator ==(
const Color& left,
const Color& right);
128 SFML_GRAPHICS_API
bool operator !=(
const Color& left,
const Color& right);
143 SFML_GRAPHICS_API
Color operator +(
const Color& left,
const Color& right);
158 SFML_GRAPHICS_API
Color operator -(
const Color& left,
const Color& right);
175 SFML_GRAPHICS_API
Color operator *(
const Color& left,
const Color& right);
230 #endif // SFML_COLOR_HPP
static const Color White
White predefined color.
Utility class for manipulating RGBA colors.
static const Color Blue
Blue predefined color.
static const Color Red
Red predefined color.
static const Color Green
Green predefined color.
static const Color Transparent
Transparent (black) predefined color.
static const Color Cyan
Cyan predefined color.
Uint8 a
Alpha (opacity) component.
static const Color Black
Black predefined color.
static const Color Yellow
Yellow predefined color.
static const Color Magenta
Magenta predefined color.