makecol(3)
β¨ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms