generate_332_palette(3)
β¨ generate_332_palette(3) β¨
okay bestie, gather round, it's Allegro manual time β this one's from the Allegro game programming library, and it's a lil cutie. π
πΈ NAME πΈ
generate_332_palette β constructs a fake truecolor palette. Yep, that's the whole job. She's giving "one task, done flawlessly." π
π SYNOPSIS π
#include <allegro.h>
void generate_332_palette(PALETTE pal);
π¦ DESCRIPTION π¦
So basically, this function builds you a fake truecolor palette β and the way it does that is by splitting up the bits like a lil snack: three bits for red, three bits for green, and two bits for the blue. That's the whole 3-3-2 situation, hence the name, iykyk. π
And here's the part that's actually lowkey important: load_bitmap() will fill that pal parameter with this palette if the file doesn't contain a palette of its own β which happens when you're reading a truecolor bitmap (ie. no palette in the file, so Allegro just hands you this one instead). Not me being your backup palette when nobody else showed up ππ«Ά
β SEE ALSO β
generate_optimized_palette(3)β when you want the palette to actually be tuned for your image π¨set_color_depth(3)β because depth and palettes are besties fr frexcolmap(3)exrgbhsv(3)extruec(3)exupdate(3)
π heads up bestie: this is a fake palette, not a real truecolor setup. It's a stand-in, a vibe, a placeholder that slays in a pinch β don't go thinking it's the real thing. Periodt.
and that's the whole page, no notes π this was Allegro version 4.4.3, brought to you by the Allegro crew, and yeah the footer is literally just the manual name again β generate_332_palette(3) β iconic of her honestly πβ¨ π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms