fade_out(3alleg4)

✨ fade_out ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's fade_out(3alleg4), and it's literally the glow-down button for your palette πŸŽ€


🌈 NAME 🌈

fade_out β€” gradually fades the palette to black πŸ–€ it's part of the Allegro game programming library, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void fade_out(int speed);

πŸ’… DESCRIPTION πŸ’…

so the vibe here is: you're looking at the current palette, and this function takes you from that to a black screen, all smooth and gradual, one lil step at a time 🫢

the speed parameter runs from 1 β€” which is the slowest, the most dramatic, the main-character entrance β€” all the way up to 64, which is instantaneous. like, blink and it's gone πŸ’€

⚠️ okay two things, and they matter: - this function will block your game while the fade is in effect. your whole game is just standing there watching the fade happen. no multitasking, no chores, nothing. it's giving "one thing at a time" energy 😭 - it won't work right visually if you're not in an 8 bit color depth resolution. fr fr, check that first or the whole thing's gonna look cursed πŸ™ˆ

🌸 SEE ALSO 🌸


and that's the whole page, bestie, you ate it πŸ’…βœ¨ this was the fade_out(3alleg4) page from the Allegro manual, version 4.4.3 πŸ‘‘ slay, go fade something out πŸŽ€πŸ¦‹