makeacol(3)
π makeacol β the Allegro manual, but make it a group chat π
okay bestie, we're doing makeacol and makeacol_depth today. they live in the Allegro game programming library and their whole thing is turning RGBA colors into display dependent pixel formats. yes that's a lot of words, we'll get there π«Ά
β¨ NAME β¨
makeacol, makeacol_depth β converts RGBA colors into display dependent pixel formats. from the Allegro game programming library, no cap π
π SYNOPSIS π
#include <allegro.h>
int makeacol(int r, int g, int b, int a);
int makeacol_depth(int color_depth, int r, int g, int b, int a);
like look at her. two little functions. one of them takes a color_depth because she's β¨extraβ¨ and knows where she's going.
πΈ DESCRIPTION πΈ
okay so. these two convert RGBA colors into display dependent pixel formats. that's the whole vibe.
here's the tea tho π β in anything less than a 32-bit mode, these are literally the same as calling makecol() or makecol_depth(). same girl, different font.
BUT. and this is the part that eats π β by using these routines instead, it's possible to create 32-bit color values that contain a true 8 bit alpha channel along with the red, green, and blue components. so r, g, b, and a. all four. the full set. periodt.
π okay important important important: you should ONLY use RGBA format colors as the input todraw_trans_sprite()ordraw_trans_rle_sprite()after callingset_alpha_blender(). do NOT draw them directly to the screen. that's not a vibe, that's a bug. iykyk π
π RETURN VALUE π
returns the requested RGBA quadruplet β¨ like she said what she said.
π¦ SEE ALSO π¦
go read those too bestie, they're all connected, it's giving lore π
Allegro, version 4.4.3 β that's the source and the version, mwah, and this whole page is makeacol(3). stay iconic, go make some colors, ily π«Άπβ¨
π¦ 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