#include <GColour.h>
Public Member Functions | |
GColour () | |
Transparent. | |
GColour (uint8 idx8, GPalette *palette) | |
Indexed colour. | |
GColour (int r, int g, int b, int a=255) | |
True colour. | |
GColour (COLOUR c, int bits) | |
Conversion from COLOUR. | |
void | Rgb (int r, int g, int b, int a=255) |
Sets the colour to a rgb(a) value. | |
void | Set (COLOUR c, int bits) |
Sets the colour. | |
uint8 | r () |
Gets the red component (0-255). | |
uint8 | g () |
Gets the green component (0-255). | |
uint8 | b () |
Gets the blue component (0-255). | |
uint8 | a () |
Gets the alpha component (0-255). | |
void | c24 (COLOUR c) |
Set 24 bit colour. | |
COLOUR | c32 () |
Get 32 bit colour. | |
void | c32 (COLOUR c) |
Set 32 bit colour. | |
GColour & | Mix (GColour Tint, float RatioOfTint=0.5) |
Mixes 'Tint' with the current colour and returns this. |