Dualie
|
A class used to describe a RGBA color. More...
#include <Color.hpp>
Public Member Functions | |
Color (std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t alpha=255) | |
Color (std::uint32_t color) | |
const u32 & | getColorValue () const |
Color values are stored as a 32 bit integer in the format ABGR, with A being shifted 24 bits, B 16 bits, and so on. | |
Static Public Attributes | |
static Color | Black |
Black predefined color. | |
static Color | White |
White predefined color. | |
static Color | Red |
Red predefined color. | |
static Color | Green |
Green predefined color. | |
static Color | Blue |
Blue predefined color. | |
static Color | Yellow |
Yellow predefined color. | |
static Color | Magenta |
Magenta predefined color. | |
static Color | Cyan |
Cyan predefined color. | |
static Color | Transparent |
Transparent (black) predefined color. | |
A class used to describe a RGBA color.
const u32 & dl::Color::getColorValue | ( | ) | const |
Color values are stored as a 32 bit integer in the format ABGR, with A being shifted 24 bits, B 16 bits, and so on.