COLOR_MAP(3)

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

✨ NAME ✨

COLOR_MAP β€” it stores a color map so drawing goes zoom zoom. Part of the Allegro game programming library, bestie. πŸŽ€


πŸ’… SYNOPSIS πŸ’…

#include <allegro.h>

typedef struct COLOR_MAP

okay so literally that's it, that's the whole vibe, she's a struct and she's iconic πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so the struct has exactly one member and here she is:

unsigned char data[PAL_SIZE][PAL_SIZE];

that's the whole thing. a big ol' grid of bytes, PAL_SIZE by PAL_SIZE, no cap.

now if you wanna actually know how to get one of these and use it β€” like, the whole point of it β€” you gotta go read the chapter called "Transparency and patterned drawing", specifically the section "256-color transparency". that's where the lore lives. this page is just here to tell you the struct exists. she's giving mysterious. πŸ’œ

fr fr, don't skip the chapter, bestie, that's where the actual instructions are πŸ™ˆ

🌸 SEE ALSO 🌸


and that's the page!! this one came straight out of the Allegro manual, version 4.4.3 β€” so if you're running anything older or newer, vibe check your local docs, okay? mwah πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from