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

# exalpha(3alleg4)

Creating and using 32 bit RGBA sprites. Allegro game programming library.

## NAME

exalpha - Creating and using 32 bit RGBA sprites. Allegro game programming library.

## SYNOPSIS

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

**Example exalpha**

## DESCRIPTION

This program demonstrates how to use the 32 bit RGBA translucency functions to store an alpha channel along with a bitmap graphic.  Two images are loaded from disk. One will be used for the background and the other as a sprite. The example generates an alpha channel for the sprite image, composing the 32 bit RGBA bitmap during runtime, and draws it at the position of the mouse cursor.

## SEE ALSO

**BITMAP**(3alleg4), **END\_OF\_MAIN**(3alleg4), **SCREEN\_H**(3alleg4), **SCREEN\_W**(3alleg4), **allegro\_error**(3alleg4), **allegro\_init**(3alleg4), **allegro\_message**(3alleg4), **blit**(3alleg4), **clear\_keybuf**(3alleg4), **create\_bitmap**(3alleg4), **destroy\_bitmap**(3alleg4), **draw\_trans\_sprite**(3alleg4), **drawing\_mode**(3alleg4), **font**(3alleg4), **getb**(3alleg4), **getg**(3alleg4), **getpixel**(3alleg4), **getr**(3alleg4), **install\_keyboard**(3alleg4), **install\_mouse**(3alleg4), **install\_timer**(3alleg4), **keypressed**(3alleg4), **load\_bitmap**(3alleg4), **makecol**(3alleg4), **mouse\_x**(3alleg4), **mouse\_y**(3alleg4), **putpixel**(3alleg4), **rectfill**(3alleg4), **replace\_filename**(3alleg4), **screen**(3alleg4), **set\_alpha\_blender**(3alleg4), **set\_color\_conversion**(3alleg4), **set\_color\_depth**(3alleg4), **set\_gfx\_mode**(3alleg4), **set\_multiply\_blender**(3alleg4), **set\_write\_alpha\_blender**(3alleg4), **solid\_mode**(3alleg4), **stretch\_blit**(3alleg4), **textprintf\_ex**(3alleg4)
