|
| void | fadechk0 (void) |
| void | fadechk (void) |
| void | dosetfade (void) |
| void | dofadestatus (void) |
| void | fadelib_codeinit (void) |
| void | dofadein2 (const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeIn Palette#: fade all colours in, rate 0.
|
| void | dofadein3 (UWORD rate, const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeIn Palette#,Rate: fade all colours in.
|
| void | dofadein (UWORD rate, UWORD lo, UWORD hi, const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeIn Palette#,Rate,Low Colour,High Colour: fade the colours of the used slice from black to the palette.
|
| void | dofadeout2 (const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeOut Palette#: fade all colours out, rate 0.
|
| void | dofadeout3 (UWORD rate, const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeOut Palette#,Rate: fade all colours out.
|
| void | dofadeout (UWORD rate, UWORD lo, UWORD hi, const struct bb_palette *pal, struct bb_slice *slice) |
| | FadeOut Palette#,Rate,Low Colour,High Colour: fade the colours of the used slice from the palette to black.
|
| void | doasyncfade (void) |
| | DoFade: one step of the fade.
|
| | FADE_FORMS (dofadein2, dofadein3, dofadein) |
| | FADE_FORMS (dofadeout2, dofadeout3, dofadeout) |
| static void | codeinit_c (void) |
| static void | dosetfade_c (UWORD type) |
| | ASyncFade On|Off: fade synchronously or step by step.
|
| | BLITZ_ALIAS (dosetfade, dosetfade_c) |
| static UWORD | dofadestatus_c (void) |
| | FadeStatus: the steps of the fade still to do.
|
| | BLITZ_ALIAS (dofadestatus, dofadestatus_c) |
| static void | calcrange (const struct bb_palette *pal, const struct bb_slice *slice, UWORD *lo, UWORD *hi) |
| static void | calcfade (const struct bb_palette *pal, struct bb_slice *slice, UWORD rate, UWORD lo, UWORD hi) |
| static void | dosyncfade (void) |
| static int | fadechk0_x (const struct bb_palette *pal, const struct bb_slice *slice) |
| static void | fadechk0_c (const struct bb_palette *pal, const struct bb_slice *slice) |
| static void | fadechk_c (UWORD lo, UWORD hi, const struct bb_palette *pal, const struct bb_slice *slice) |
| void dofadein |
( |
UWORD | rate, |
|
|
UWORD | lo, |
|
|
UWORD | hi, |
|
|
const struct bb_palette * | pal, |
|
|
struct bb_slice * | slice ) |
FadeIn Palette#,Rate,Low Colour,High Colour: fade the colours of the used slice from black to the palette.
Blitz mode only. Sets up 16 steps (calcfade: per colour the fraction = high byte of the component >> 4; low and high are swapped if low > high), starts at 0 and, with ASyncFade Off, does them all with VWait rate between them. Fixed (#134): the fractions are those of the palette alone (the original added bits of d0.w = palette# * 128 to the red and green fractions of the first colour for palettes 2 and up). By design (#136): the range is not clipped to the colours of palette and slice. Errors (debugger, fadechk): "Uninitialized Slice", "Uninitialized
Palette" (fixed #330: the original gave "Not enough colours in Slice"), "Not enough colours in Slice", also for a colour beyond the slice's colours (fixed #331: the original gave "Uninitialized Slice"); fixed (#135): the palette's data pointer is tested as a long.
- Parameters
-
| rate | d1: the frames to wait between the steps (VWait) |
| lo | d2: the low colour |
| hi | d3: the high colour |
| pal | a0: the palette (!libs palettelib,$1080) |
| slice | a1: the used slice (!libs blitzcoplib,$1102) |
| void dofadeout |
( |
UWORD | rate, |
|
|
UWORD | lo, |
|
|
UWORD | hi, |
|
|
const struct bb_palette * | pal, |
|
|
struct bb_slice * | slice ) |
FadeOut Palette#,Rate,Low Colour,High Colour: fade the colours of the used slice from the palette to black.
As FadeIn, but starts at the full colours (fraction << 4) and subtracts the fractions. Fixed (#134), by design (#136) and errors as FadeIn.
- Parameters
-
| rate | d1: the frames to wait between the steps (VWait) |
| lo | d2: the low colour |
| hi | d3: the high colour |
| pal | a0: the palette (!libs palettelib,$1080) |
| slice | a1: the used slice (!libs blitzcoplib,$1102) |