default_palette(3alleg4)
๐ default_palette โ bestie, it's the palette ๐
okay so you're reading the default_palette(3alleg4) page from the Allegro manual, and honestly? this one is a whole vibe. it's short, it's iconic, it's giving "the palette that was always there for you". let's get into it ๐ซถ
โจ NAME โจ
default_palette โ the default IBM BIOS palette, brought to you by the Allegro game programming library. the blueprint palette, fr fr ๐
โจ SYNOPSIS โจ
#include <allegro.h>
extern PALETTE default_palette;
that's it. that's the whole thing. one lil extern, living its best life ๐
โจ DESCRIPTION โจ
so default_palette is the default IBM BIOS palette, no cap. it's the moment. it's the blueprint. ๐
here's the tea: this palette gets automatically selected whenever you set a new graphics mode. like, you don't even have to ask โ Allegro just hands it to you. main character behaviour, honestly. ๐ฆ
and what's inside? okay so:
- 16 basic colors โ the classics, the icons, the originals โญ
- plus many gradients between them โ so many lil in-between shades, it's giving โจ gradient era โจ ๐
if you're nosy (respectfully) and you wanna see the values, you've got two options bestie:
- write a small Allegro program which saves a screenshot with this palette ๐ธ
- or open the grabber tool provided with Allegro and create a new palette object โ which will use this palette by default. no setup needed, it just knows. ๐ซ
lowkey the easiest way to peek at the values is just letting the tools do it for you. go off, grabber tool ๐
โจ SEE ALSO โจ
black_palette(3alleg4)๐คdesktop_palette(3alleg4)๐ฅ๏ธexjoy(3alleg4)๐ฎ
go read those too, bestie, you're on a roll ๐๐
and that's the page!! this was Allegro version 4.4.3, mwah ๐ thanks for scrolling all the way down, you're literally the best. now go set a graphics mode and let default_palette do its thing ๐ธโจ๐
๐ฆ 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