---
name: "get_color"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/get_color/3alleg4"
---

# get\_color(3alleg4)

Retrieves the specified palette entry. Allegro game programming library.

## NAME

get\_color - Retrieves the specified palette entry. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void get\_color(int index, RGB \*p);**

## DESCRIPTION

Retrieves the specified palette entry. Example:

```
   RGB color;
   ...
   get_color(11, &color);
```

## SEE ALSO

**get\_palette**(3alleg4), **set\_color**(3alleg4)
