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

# create\_blender\_table(3alleg4)

Emulates truecolor blender effects in paletted modes. Allegro game programming library.

## NAME

create\_blender\_table - Emulates truecolor blender effects in paletted modes. Allegro game programming library.

## SYNOPSIS

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

**void create\_blender\_table(COLOR\_MAP \*table, const PALETTE pal,** **void (\*callback)(int pos));**

## DESCRIPTION

Fills the specified color mapping table with lookup data for doing a  paletted equivalent of whatever truecolor blender mode is currently  selected. After calling set\_trans\_blender(), set\_blender\_mode(), or any  of the other truecolor blender mode routines, you can use this function  to create an 8-bit mapping table that will have the same results as  whatever 24-bit blending mode you have enabled.

## SEE ALSO

**color\_map**(3alleg4), **create\_light\_table**(3alleg4), **create\_trans\_table**(3alleg4), **create\_color\_table**(3alleg4), **draw\_trans\_sprite**(3alleg4), **draw\_lit\_sprite**(3alleg4), **draw\_gouraud\_sprite**(3alleg4), **set\_trans\_blender**(3alleg4), **set\_blender\_mode**(3alleg4)
