.\" Generated by the Allegro makedoc utility .TH makecol 3 "version 4.2.2" "Allegro" "Allegro manual" .SH NAME makecol \- Converts an RGB value into the current pixel format. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int makecol(int r, int g, int b); .SH DESCRIPTION Converts colors from a hardware independent format (red, green, and blue values ranging 0-255) to the pixel format required by the current video mode, calling the preceding 8, 15, 16, 24, or 32-bit makecol functions as appropriate. Example: .nf /* Regardless of color depth, this will look green. */ int green_color = makecol(0, 255, 0); .fi .SH "RETURN VALUE" Returns the requested RGB triplet in the current color depth. .SH SEE ALSO .BR makeacol (3), .BR makecol8 (3), .BR makecol_depth (3), .BR makecol15_dither (3), .BR rgb_map (3), .BR set_color_depth (3)