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

# generate\_332\_palette(3alleg)

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**(3alleg)](/generate_optimized_palette/3alleg.md), [**set\_color\_depth**(3alleg)](/set_color_depth/3alleg.md), [**excolmap**(3alleg)](/excolmap/3alleg.md), [**exrgbhsv**(3alleg)](/exrgbhsv/3alleg.md), [**extruec**(3alleg)](/extruec/3alleg.md), [**exupdate**(3alleg)](/exupdate/3alleg.md)
