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

# makeacol32(3alleg4)

Converts an RGBA color into a 32-bit display pixel format. Allegro game programming library.

## NAME

makeacol32 - Converts an RGBA color into a 32-bit display pixel format. Allegro game programming library.

## SYNOPSIS

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

**int makeacol32(int r, int g, int b, int a);**

## DESCRIPTION

Converts an RGBA color into a 32-bit display pixel format, which includes  an alpha (transparency) value. There are no versions of this routine for  other color depths, because only the 32-bit format has enough room to  store a proper alpha channel. You should only use RGBA format colors as  the input to draw\_trans\_sprite() or draw\_trans\_rle\_sprite() after calling  set\_alpha\_blender(), rather than drawing them directly to the screen.

## SEE ALSO

**makeacol**(3alleg4), **set\_alpha\_blender**(3alleg4), **set\_write\_alpha\_blender**(3alleg4)
