Fade Demo GB

From GameBrew
Revision as of 00:58, 13 September 2023 by HydeWing (talk | contribs) (Created page with "{{Infobox GB Homebrews |title=Fade Demo |image=fadegbc.png |description=Fading palettes demo. |author=Jason Stern |lastupdated=1999/09/14 |type=Samples |version=1999 |format=CGB (GBDK) |license=Mixed |download=https://dlhb.gamebrew.org/gbhomebrews/fadegbc.7z |website=http://www.tripmode.com/gbdev/gbc.html |source=https://dlhb.gamebrew.org/gbhomebrews/fadegbc.7z |donation= }} {{#seo: |title=GameBrew |title_mode=append |image=fadegbc.png |image_alt=Fade Demo }} This is a G...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Fade Demo
Fadegbc.png
General
AuthorJason Stern
TypeSamples
Version1999
LicenseMixed
SystemCGB (GBDK)
Last Updated1999/09/14
Links
Download
Website
Source

This is a Game Boy Color demo that showcases how to create a fade effect for a grayscale image.

The fade effect is done by modifying the palette values of the image. The code snippet includes setting up the palette, displaying a fox logo, and implementing the fade effect. The fadevalue is set to 1057, which corresponds to a grayscale fade. For color images, you would need to implement a routine to prevent color values from going below 0 during fading. The code uses the Game Boy Defines and Color Defines libraries, along with fox logo data. The fade function iteratively adjusts palette values to create the fade effect, and the image is shown on the screen.

Screenshots

fadegbc2.gif

External links

Advertising: