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

# generate\_332\_palette(3alleg4)

Constructs a fake truecolor palette. Allegro game programming library.

## NAME

generate\_332\_palette - Constructs a fake truecolor palette. Allegro game programming library.

## SYNOPSIS

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

**void generate\_332\_palette(PALETTE pal);**

## DESCRIPTION

Constructs a fake truecolor palette, using three bits for red and green  and two for the blue. The load\_bitmap() function fills the palette parameter with this if the file does not contain a palette itself (ie. you are reading a truecolor bitmap).

## SEE ALSO

**generate\_optimized\_palette**(3alleg4), **set\_color\_depth**(3alleg4), **excolmap**(3alleg4), **exrgbhsv**(3alleg4), **extruec**(3alleg4), **exupdate**(3alleg4)
