makeacol (3) - Linux Man Pages
makeacol: Converts RGBA colors into display dependent pixel formats. Allegro game programming library.
NAMEmakeacol, makeacol_depth - Converts RGBA colors into display dependent pixel formats. Allegro game programming library.
int makeacol(int r, int g, int b, int a);
DESCRIPTIONConvert RGBA colors into display dependent pixel formats. In anything less than a 32-bit mode, these are the same as calling makecol() or makecol_depth(), but by using these routines it is possible to create 32-bit color values that contain a true 8 bit alpha channel along with the red, green, and blue components. 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.
RETURN VALUEReturns the requested RGBA quadruplet.
SEE ALSOmakecol(3), makecol_depth(3), set_alpha_blender(3), set_write_alpha_blender(3)
Linux man pages generated by: SysTutorials
Linux Man Pages Copyright Respective Owners. Site Copyright © SysTutorials. All Rights Reserved.