DOKK / manpages / debian 10 / allegro5-doc / al_color_name.3alleg5.en
al_color_name(3alleg5) al_color_name(3alleg5)

al_color_name - Allegro 5 API

#include <allegro5/allegro_color.h>
ALLEGRO_COLOR al_color_name(char const *name)
    

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

See al_color_name_to_rgb(3alleg5) for the list of names.

Allegro reference manual