1fade_interpolate(3) Allegro manual fade_interpolate(3)
2
3
4
6 fade_interpolate - Calculates a new palette interpolated between two
7 others. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void fade_interpolate(const PALETTE source, const PALETTE dest, PALETTE
14 output, int pos, int from, int to);
15
17 Calculates a temporary palette part way between source and dest,
18 returning it in the output parameter. The position between the two
19 extremes is specified by the pos value: 0 returns an exact copy of
20 source, 64 returns dest, 32 returns a palette half way between the two,
21 etc. This routine only affects colors between from and to (inclusive:
22 pass 0 and 255 to interpolate the entire palette).
23
24
26 fade_in(3), fade_out(3), fade_from(3)
27
28
29
30Allegro version 4.4.3 fade_interpolate(3)