#include <Types/Colour.h>
Public Member Functions | |
Colour () | |
Create a white colour. | |
Colour (const unsigned char r, const unsigned char g, const unsigned char b, const unsigned char a=255) | |
Create the colour from parameters. | |
Colour (const unsigned int rgba) | |
Create the colour from a 32bit representation (RGBA). | |
void | setRGBA (const unsigned int rgba) |
Set the colour to rgba. | |
Public Attributes | |
unsigned char | r |
unsigned char | g |
unsigned char | b |
unsigned char | a |
Colour container.
Contain a color in 32bit representation (8R ; 8G ; 8B ; 8A)
Colour::Colour | ( | const unsigned char | r, | |
const unsigned char | g, | |||
const unsigned char | b, | |||
const unsigned char | a = 255 | |||
) | [inline] |
Create the colour from parameters.
r | the red component | |
g | the green component | |
b | the blue component | |
a | the alpha component |
Colour::Colour | ( | const unsigned int | rgba | ) | [inline] |
Create the colour from a 32bit representation (RGBA).
rgba | the colour |
unsigned char Colour::a |
Alpha componant
unsigned char Colour::b |
Blue componant
unsigned char Colour::g |
Green componant
unsigned char Colour::r |
Red componant