RGB(3alleg4)
π RGB π
single palette entry, allegro game programming library β this is from the Allegro manual, bestie π
β¨ SYNOPSIS β¨
okay so first things first, you gotta pull in the header:
#include <allegro.h>
and here's the lil guy himself:
typedef struct RGB
πΈ DESCRIPTION πΈ
inside that struct you've got:
unsigned char r, g, b;
so like. it's a palette entry. that's the whole vibe. π
it also has one extra field hiding in there purely for padding purposes, but ngl you should not usually care about it β it's giving background character, let it do its thing π
if you wanna know how to actually obtain and use this structure, go read the chapter "Palette routines". that's where the real tea is π
π SEE ALSO π
your required reading, no skipping:
PALETTE(3alleg4)ex12bit(3alleg4)ex3d(3alleg4)excolmap(3alleg4)exconfig(3alleg4)expal(3alleg4)exrgbhsv(3alleg4)exscroll(3alleg4)exshade(3alleg4)extrans(3alleg4)extruec(3alleg4)
and that's the whole page, bestie, you ate it up fr fr π«Ά this was Allegro version 4.4.3, mwah, 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