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:

  1. write a small Allegro program which saves a screenshot with this palette ๐Ÿ“ธ
  2. 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 โœจ

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 ๐ŸŒธโœจ๐Ÿ’