Stores Colors in the RGBA format. More...
#include <Color.hpp>
Public Member Functions | |
RGBA (int r_, int g_, int b_, int a_) | |
Creates an RGBA object with the specified values. | |
RGBA (const Color &c) | |
Creates an RGBA object from a Color object. | |
operator Color () const | |
Converts to a Color object. | |
Public Attributes | |
int | r |
Red color component. | |
int | g |
Green color component. | |
int | b |
Blue color component. | |
int | a |
Alpha (transparency) component. |
Stores Colors in the RGBA format.
a5::RGBA::RGBA | ( | int | r_, | |
int | g_, | |||
int | b_, | |||
int | a_ | |||
) |
Creates an RGBA object with the specified values.
int a5::RGBA::r |
Red color component.
int a5::RGBA::g |
Green color component.
int a5::RGBA::b |
Blue color component.
int a5::RGBA::a |
Alpha (transparency) component.