COLOR_MAP(3alleg4)

πŸ’– COLOR_MAP(3alleg4) β€” the Allegro manual, but make it cute πŸ’–

okay so bestie, welcome to the COLOR_MAP page of the Allegro manual πŸŽ€ this is a lil struct that stores a color map so your drawing goes zoom zoom. Allegro game programming library, yeah? iconic.


✨ SYNOPSIS ✨

#include <allegro.h>

typedef struct COLOR_MAP

like. that's it. that's the whole vibe check. it's a typedef, she's a struct, she's lowkey famous πŸ¦‹


🌸 DESCRIPTION 🌸

and inside her? one (1) single field, no cap:

unsigned char data[PAL_SIZE][PAL_SIZE];

that's the whole body. a big ol' 2D grid of bytes, PAL_SIZE by PAL_SIZE, and she's holding all the color-map tea πŸ’…

now if you wanna actually know how to get one of these or how to use it, go read the chapter "Transparency and patterned drawing", section "256-color transparency". that's where the lore lives, fr fr πŸ“–βœ¨


🫢 SEE ALSO 🫢

the besties, the girlies, the whole friend group:

go read all of them, they ate πŸ”₯


ngl there are no options, no exit statuses, no signals, no environment variables on this page β€” it's literally just a struct and a pointer to a chapter. sometimes the main character is small πŸ’€ but she's still the main character πŸ‘‘

and that's the page!! version 4.4.3 of Allegro, and this lil manpage goes by COLOR_MAP(3alleg4) β€” mwah, stan, periodt πŸ’–βœ¨πŸŽ€πŸ¦‹