al_color_name

ALLEGRO_COLOR al_color_name(char const *name)
Introduced in 5.0.0

Return an ALLEGRO_COLOR with the given name. If the color is not found then black is returned.

See al_color_name_to_rgb for the list of names.

Examples: ex_blit, ex_clip, ex_draw, ex_native_filechooser


Most helpful discussions:

Other recent discussions: