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:


and that's the whole page, bestie, you ate it up fr fr 🫢 this was Allegro version 4.4.3, mwah, periodt πŸ’‹βœ¨