---
name: "RGB"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/RGB"
---

# RGB(3alleg)

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**(3alleg)](/PALETTE/3alleg.md), [**ex12bit**(3alleg)](/ex12bit/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**excolmap**(3alleg)](/excolmap/3alleg.md), [**exconfig**(3alleg)](/exconfig/3alleg.md), [**expal**(3alleg)](/expal/3alleg.md), [**exrgbhsv**(3alleg)](/exrgbhsv/3alleg.md), [**exscroll**(3alleg)](/exscroll/3alleg.md), [**exshade**(3alleg)](/exshade/3alleg.md), [**extrans**(3alleg)](/extrans/3alleg.md), [**extruec**(3alleg)](/extruec/3alleg.md)
