fade_from_range(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

Okay bestie, this is fade_from_range(3) from the Allegro manual. πŸ’…

  • fade_from_range β€” gradually fades a part of the palette between two others. Allegro game programming library. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void fade_from_range(const PALETTE source, const PALETTE dest, int
       speed, int from, int to);

πŸ’– DESCRIPTION πŸ’–

Okay so fade_from_range is literally the glow-up button for your palette. It gradually fades a part of the palette from the source palette to the dest palette. ✨

The speed is from 1 β€” the slowest, like a dramatic slow-mo entrance β€” up to 64, which is instantaneous. Blink and it's done, fr fr. πŸ”₯

This routine only affects colors between from and to, and yes bestie, that's inclusive. Pass 0 and 255 to fade the entire palette. πŸŽ€

⚠️ Heads up, no cap: this function will block your game while the fade is in effect. Also, it won't work right visually if you are not in an 8 bit color depth resolution. So vibe check your color depth first, okay? 😭

🌈 SEE ALSO 🌈


That's the whole page, bestie! πŸ’– Allegro manual, version 4.4.3, page fade_from_range(3) β€” mwah πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from