extruec(3alleg4)
β¨ extruec β¨
okay bestie, so this is extruec from the Allegro manual β yes, that Allegro, the game programming library π β and it's giving "pixel format tutorial but make it a whole vibe" energy.
π SYNOPSIS π
#include <allegro.h>
Example extruec
like, that's it. that's the whole flex. π
π DESCRIPTION π
So this program shows you how to specify colors in the various different truecolor pixel formats. That's the whole plot. truecolor pixel formats, one little demo, all of them.
The example shows the same screen (a few text lines and three coloured gradients) in all the color depth modes supported by your video card. Same screen every time, different depth, no notes. πΈ
And here's the lowkey iconic part: the more color depth you have, the less banding you will see in the gradients. So like... the gradients get smoother the deeper you go. banding found dead, deceased, no cap πβ¨
π SEE ALSO π
the whole bestie squad, alphabetically unhinged:
END_OF_MAIN(3alleg4)PALETTE(3alleg4)RGB(3alleg4)SCREEN_H(3alleg4)SCREEN_W(3alleg4)acquire_screen(3alleg4)allegro_init(3alleg4)clear_to_color(3alleg4)font(3alleg4)generate_332_palette(3alleg4)install_keyboard(3alleg4)key(3alleg4)makecol(3alleg4)readkey(3alleg4)release_screen(3alleg4)screen(3alleg4)set_color_depth(3alleg4)set_gfx_mode(3alleg4)set_palette(3alleg4)textout_centre_ex(3alleg4)textout_ex(3alleg4)textprintf_ex(3alleg4)vline(3alleg4)
and that's the page, bestie!! π«Ά this whole thing is Allegro version 4.4.3 β extruec, out. stay colorful, hydrate, and go look at a gradient in 32-bit. it hits different. π¦β¨π
π¦ 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