---
name: "RGB"
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/RGB/3alleg4"
---

# RGB(3alleg4)

Single palette entry. Allegro game programming library.

## NAME

RGB - Single palette entry. Allegro game programming library.

## SYNOPSIS

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

**typedef struct RGB**

## DESCRIPTION

```
   unsigned char r, g, b;
```

Palette entry. It contains an additional field for the purpose of padding but you should not usually care about it. Read chapter "Palette routines" for a description on how to obtain/use this structure.

## SEE ALSO

**PALETTE**(3alleg4), **ex12bit**(3alleg4), **ex3d**(3alleg4), **excolmap**(3alleg4), **exconfig**(3alleg4), **expal**(3alleg4), **exrgbhsv**(3alleg4), **exscroll**(3alleg4), **exshade**(3alleg4), **extrans**(3alleg4), **extruec**(3alleg4)
