GColour Class Reference

A colour definition. More...

#include <GColour.h>

List of all members.

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.
GColourMix (GColour Tint, float RatioOfTint=0.5)
 Mixes 'Tint' with the current colour and returns this.


Detailed Description

A colour definition.
The documentation for this class was generated from the following file:

Generated on Wed May 11 07:51:57 2011 for Lgi by  doxygen 1.5.6