fade_in(3alleg4)

✨ fade_in ✨

okay bestie, gather round, because we're talking about fade_in from the Allegro game programming library β€” she's a 3alleg4 girlie and she's here to make your screen go from void to vibes πŸ’…


🌸 NAME 🌸

fade_in β€” gradually fades the palette from black. Allegro game programming library. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void fade_in(const PALETTE p, int speed);

πŸ’– DESCRIPTION πŸ’–

So like, imagine your screen is fully black, right? Iconic, mysterious, very demure. And then fade_in is the one that gradually brings it up to the palette you hand it. It's giving sunrise. It's giving main character entrance. It's giving ✨cinematic✨.

The speed param? That's the drama dial:

  • 1 is the slowest β€” maximum suspense, let the audience feel it 🐌
  • up to 64 is instantaneous β€” no fade, just BAM, palette, done πŸ’€
heads up bestie!! This function will block your game while the fade is in effect β€” like, it fully takes over and nothing else is happening, no cap. 😭 And also, it won't work right visually if you are not in an 8 bit color depth resolution. So if your color depth isn't 8-bit, the vibe check fails and it looks off. fr fr. πŸ™ˆ

🫢 SEE ALSO 🫢


that's the whole page, you ate it, periodt πŸ‘‘

this lil love letter ships with Allegro version 4.4.3 🌈 β€” mwah, go make something pretty πŸ’œ