---
name: "al_color_name"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_color_name/3alleg5"
---

# al\_color\_name(3alleg5)

Allegro 5 API

## NAME

al\_color\_name - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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.
