Allegro Version 4.9.2 (SVN) |
ALLEGRO_COLORAn ALLEGRO_COLOR structure describes a color in a device independant way. Use al_map_rgb et. al. and al_unmap_rgb et. al. to translate from and to various color representations. |
Convert r, g, b (ranging from 0-255) into an ALLEGRO_COLOR, using 255 for alpha.
ALLEGRO_COLOR al_map_rgb( unsigned char r, unsigned char g, unsigned char b )
Retrieves components of an ALLEGRO_COLOR, ignoring alpha Components will range from 0-255.
void al_unmap_rgb( ALLEGRO_COLOR color, unsigned char * r, unsigned char * g, unsigned char * b )