31#include <SFML/Graphics/Export.hpp>
62 Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha = 255);
114SFML_GRAPHICS_API
bool operator ==(
const Color& left,
const Color& right);
128SFML_GRAPHICS_API
bool operator !=(
const Color& left,
const Color& right);
Utility class for manipulating RGBA colors.
static const Color Red
Red predefined color.
static const Color White
White predefined color.
Color(Uint32 color)
Construct the color from 32-bit unsigned integer.
static const Color Transparent
Transparent (black) predefined color.
Uint8 a
Alpha (opacity) component.
static const Color Cyan
Cyan predefined color.
static const Color Magenta
Magenta predefined color.
static const Color Black
Black predefined color.
static const Color Green
Green predefined color.
static const Color Blue
Blue predefined color.
Uint32 toInteger() const
Retrieve the color as a 32-bit unsigned integer.
Color()
Default constructor.
Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255)
Construct the color from its 4 RGBA components.
static const Color Yellow
Yellow predefined color.