Millie Jackson
Wednesday, 26 February 2014
Allegro Colour Variables
Rather than using the rgb colour every time you need a colour argument you can use ALLEGRO_COLOR to set a global colour.
ALLEGRO_COLOR electricBlue = al_map_rgb(44, 117, 255);
This was you only need the variable name rather than the hex code.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment