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

# MASK\_COLOR\_8(3alleg)

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**(3alleg)](/bitmap_mask_color/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**draw\_sprite**(3alleg)](/draw_sprite/3alleg.md), [**masked\_blit**(3alleg)](/masked_blit/3alleg.md)
