fade_in_range(3)

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

✨ NAME ✨

fade_in_range β€” gradually fades a part of the palette from black. This page is from the Allegro manual, aka the Allegro game programming library. Bestie, it's giving classic Allegro energy. πŸ’–

✨ SYNOPSIS ✨

#include <allegro.h>

void fade_in_range(const PALETTE p, int speed, int from, int to);

✨ DESCRIPTION ✨

Okay so fade_in_range is the one that gradually fades a part of the palette from a black screen to the specified palette. It's from the Allegro manual β€” the Allegro game programming library, iykyk. ✨

The speed goes from 1 (the slowest, like watching paint dry but make it aesthetic) up to 64 (instantaneous, blink and you missed it). πŸ’…

This routine only affects colors between from and to (inclusive: pass 0 and 255 to fade the entire palette). Periodt.

Note, bestie: this function will block your game while the fade is in effect, and it won't work right visually if you are not in an 8 bit color depth resolution. So like, be aware. 🫢

✨ SEE ALSO ✨


And that's the whole page, no cap. This is from the Allegro manual, and the footer is giving Allegro version 4.4.3 energy with the fade_in_range(3) tag. No date in sight, just vibes. Byeee! πŸ’–βœ¨

πŸ“¦ where this page comes from