1fade_from_range(3) Allegro manual fade_from_range(3)
2
3
4
6 fade_from_range - Gradually fades a part of the palette between two
7 others. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void fade_from_range(const PALETTE source, const PALETTE dest, int
14 speed, int from, int to);
15
17 Gradually fades a part of the palette from the source palette to the
18 dest palette. The speed is from 1 (the slowest) up to 64 (instanta‐
19 neous). This routine only affects colors between from and to (inclu‐
20 sive: pass 0 and 255 to fade the entire palette).
21
22 Note that this function will block your game while the fade is in
23 effect, and it won't work right visually if you are not in an 8 bit
24 color depth resolution.
25
26
28 fade_from(3)
29
30
31
32Allegro version 4.2.2 fade_from_range(3)