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:
color_map(3alleg4)ex3d(3alleg4)excolmap(3alleg4)exlights(3alleg4)exshade(3alleg4)extrans(3alleg4)
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 πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms