11 #include "rpage/aos/inc.prl" 12 #include <intuition/intuition.h> 13 #include <graphics/gfxbase.h> 15 #define FADE_STEP_DEFAULT 16 17 typedef UWORD color444;
18 typedef ULONG color888;
21 typedef color888 amiga_color;
23 typedef color444 amiga_color;
28 UWORD mix_rgb4_colors(color444 A, color444 B, USHORT n);
29 void mix_rgb4_palette_to_black(
struct ViewPort *vp, color444 *pal,
UWORD pal_size,
UWORD fade);
33 color888 rgb4_to_rgb8(color444 A);
34 color444 rgb8_to_rgb4(color888 A);
35 color888 mix_rgb8_colors(color888 A, color888 B,
UWORD n);
36 color888 add_rgb8_colors(color888 A, color888 B);
37 color888 divide_rgb8_colors(color888 A,
UWORD n);
38 void set_palette_to_black(
struct ViewPort *vp,
UWORD first_color,
UWORD last_color);
39 void set_palette_to_grey(
struct ViewPort *vp,
UWORD first_color,
UWORD last_color);
40 void set_palette(
struct ViewPort *vp, amiga_color **palette,
UWORD first_color,
UWORD last_color);