Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mask_color_8(3alleg4) [opendarwin man page]

MASK_COLOR_8(3alleg4)						  Allegro manual					     MASK_COLOR_8(3alleg4)

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) Allegro version 4.4.2 MASK_COLOR_8(3alleg4)

Check Out this Related Man Page

bitmap_mask_color(3alleg4)					  Allegro manual					bitmap_mask_color(3alleg4)

bitmap_mask_color - Returns the mask color of the specified bitmap. Allegro game programming library. SYNOPSIS
#include <allegro.h> int bitmap_mask_color(BITMAP *bmp); DESCRIPTION
Returns the mask color for the specified bitmap (the value which is skipped when drawing sprites). For 256-color bitmaps this is zero, and for truecolor bitmaps it is bright pink (maximum red and blue, zero green). A frequent use of this function is to clear a bitmap with the mask color so you can later use this bitmap with masked_blit() or draw_sprite() after drawing other stuff on it. Example: /* Replace mask color with another color. */ for (y = 0; y h; y++) for (x = 0; x w; x++) if (getpixel(bmp, x, y) == bitmap_mask_color(bmp)) putpixel(bmp, x, y, another_color); SEE ALSO
MASK_COLOR_8(3alleg4), set_color_depth(3alleg4), bitmap_color_depth(3alleg4), ex3d(3alleg4), exmouse(3alleg4), expat(3alleg4) Allegro version 4.4.2 bitmap_mask_color(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies

Featured Tech Videos