fade_out_range(3alleg4)
β¨ fade_out_range β¨
okay bestie, welcome to the Allegro manual π β yes, the actual game programming library, and yes we're about to make a chunk of your palette fade to black like it's leaving the group chat π«Ά
πΈ NAME πΈ
fade_out_range β gradually fades a part of the palette to black. Allegro game programming library. π
π SYNOPSIS π
#include <allegro.h>
void fade_out_range(int speed, int from, int to);
π DESCRIPTION π
So basically? This one takes part of your palette and fades it from whatever the current palette is, all the way down to a black screen. bye bye colors πβ‘οΈπ€
The speed goes from 1 (the slowest, most dramatic, main-character slow-mo moment π’) all the way up to 64 (instantaneous, blink and it's gone π).
And here's the tea: this routine only touches the colors between from and to β inclusive, bestie, both ends count. So if you want to fade the entire palette, you pass 0 and 255. Slay. β¨
heads up though π¨ this function will block your game while the fade is in effect β like, it's holding the whole thing hostage until it's done π. Also it won't work right visually if you're not in an 8 bit color depth resolution. no cap, don't skip that part.
π¦ SEE ALSO π¦
fade_out(3alleg4)β the sibling, go say hi π
and that's the whole vibe, bestie πβ¨ this was Allegro, version 4.4.3, and yeah β that's the manual page, mwah π
π¦ 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