Stores and converts colors. More...
#include <Color.hpp>
Public Member Functions | |
Color () | |
Creates a color, initialized to transparent black. | |
Color (unsigned int c) | |
Maps an integer to a color. | |
Color (ALLEGRO_COLOR c) | |
Wraps an Allegro color structure. | |
operator ALLEGRO_COLOR () const | |
Returns the Allegro color structure. | |
bool | operator== (const Color &b) const |
Compares Color objects. |
Stores and converts colors.
a5::Color::Color | ( | ) |
Creates a color, initialized to transparent black.
a5::Color::Color | ( | unsigned int | c | ) |
Maps an integer to a color.
a5::Color::Color | ( | ALLEGRO_COLOR | c | ) |
Wraps an Allegro color structure.
a5::Color::operator ALLEGRO_COLOR | ( | ) | const |
Returns the Allegro color structure.