Color is an utility class for manipulating 32-bits RGBA colors. More...
#include <Color.hpp>
Public Member Functions | |
| Color () | |
| Default constructor. | |
| Color (Uint8 R, Uint8 G, Uint8 B, Uint8 A=255) | |
| Construct the color from its 4 RGBA components. | |
| Color & | operator+= (const Color &Other) |
| Operator += overload to add a color. | |
| Color & | operator*= (const Color &Other) |
| Operator *= overload to modulate a color. | |
| bool | operator== (const Color &Other) const |
| Compare two colors (for equality) | |
| bool | operator!= (const Color &Other) const |
| Compare two colors (for difference) | |
Public Attributes | |
| Uint8 | r |
| Red component. | |
| Uint8 | g |
| Green component. | |
| Uint8 | b |
| Blue component. | |
| Uint8 | a |
| Alpha (transparency) component. | |
Static Public Attributes | |
| static const Color | Black |
| Black predefined color. | |
| static const Color | White |
| White predefined color. | |
| static const Color | Red |
| Red predefined color. | |
| static const Color | Green |
| Green predefined color. | |
| static const Color | Blue |
| Blue predefined color. | |
| static const Color | Yellow |
| Yellow predefined color. | |
| static const Color | Magenta |
| Magenta predefined color. | |
| static const Color | Cyan |
| Cyan predefined color. | |
Color is an utility class for manipulating 32-bits RGBA colors.