fade_from(3alleg4)

πŸ’– fade_from(3alleg4) πŸ’–

okay bestie, welcome to the Allegro manual β€” this is the page for fade_from, from the Allegro game programming library. yes we're doing palette glow-ups today. πŸ¦‹


✨ NAME ✨

fade_from β€” gradually fades the palette between two others. it's an Allegro game programming library thing. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

void fade_from(const PALETTE source, const PALETTE dest, int speed);

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea: fade_from fades gradually from the source palette to the dest palette. it's giving slow-motion transformation, it's giving main character entrance. ✨

the speed value goes from 1 (the slowest, most dramatic, most suspenseful) all the way up to 64 (instantaneous β€” like, blink and it's done, no notes).

🚨 okay important stuff, pay attention: this function will block your game while the fade is in effect. like, your whole game just sits there vibing while the fade does its thing. no cap.
also it won't work right visually if you're not in an 8 bit color depth resolution. fr fr. if you're not in 8-bit, it's gonna look cursed. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

go read those next, bestie, they're all part of the same palette-fade cinematic universe 🫢


okay that's the whole page!! this was brought to you by Allegro version 4.4.3, and this gorgeous little manpage is fade_from(3alleg4). stay faded (the palette kind), mwah πŸ’–πŸŽ€πŸ§šβœ¨