makecol(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

okay bestie, meet makecol(3) πŸ’– β€” she's from the Allegro game programming library, and she converts an RGB value into the current pixel format. That's the whole vibe.

🌈 SYNOPSIS 🌈

#include <allegro.h>

int makecol(int r, int g, int b);

πŸ¦‹ DESCRIPTION πŸ¦‹

makecol 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. She does that by calling the preceding 8, 15, 16, 24, or 32-bit makecol functions as appropriate. Lowkey iconic behavior. ✨

Example, because we love a demonstration:

/* Regardless of color depth, this will look green. */
int green_color = makecol(0, 255, 0);

πŸ’… RETURN VALUE πŸ’…

Returns the requested RGB triplet in the current color depth. Periodt. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘


made with love by the Allegro manual girlies β€” version 4.4.3, page makecol(3) πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from