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

# MASK\_COLOR\_8(3alleg4)

Constant representing the mask value in sprites. Allegro game programming library.

## NAME

MASK\_COLOR\_8, MASK\_COLOR\_15, MASK\_COLOR\_16, MASK\_COLOR\_24, MASK\_COLOR\_32 - Constant representing the mask value in sprites. Allegro game programming library.

## SYNOPSIS

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

**#define MASK\_COLOR\_8 0**

**#define MASK\_COLOR\_15 (5.5.5 pink)**

**#define MASK\_COLOR\_16 (5.6.5 pink)**

**#define MASK\_COLOR\_24 (8.8.8 pink)**

**#define MASK\_COLOR\_32 (8.8.8 pink)**

## DESCRIPTION

Constants representing the colors used to mask transparent sprite pixels  for each color depth. In 256-color resolutions this is zero, and in  truecolor modes it is bright pink (maximum red and blue, zero green).

## SEE ALSO

**bitmap\_mask\_color**(3alleg4), **makecol**(3alleg4), **draw\_sprite**(3alleg4), **masked\_blit**(3alleg4)
