Fading colors

From NeoGeo Development Wiki
Revision as of 15:04, 10 February 2011 by Furrtek (talk | contribs) (Created page with "== Palette fades == Palettes can be faded to white or black by respectively incrementing or decrementing each color component of each color individually. Of course, care has to …")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Palette fades

Palettes can be faded to white or black by respectively incrementing or decrementing each color component of each color individually. Of course, care has to be taken so that each value stops at $1F or 0.

Fading to a specific color can also be done this way, by comparing each actual components to the target ones and incrementing/decrementing them accordingly.

Simulated fades

File:Sengoku3fade.png
Fade to white in Sengoku 3's intro

Since it has the highest priority on the screen, the fix layer can be used to fade the underlaying display by using pre-dithered tiles. This can only be used if the fix doesn't have to show important information.

This is also used in Metal Slug 3 as transitions in between areas of certain levels (uses a sprite layer instead of the fix ?).