- Updated: January 6, 2026
- 8 min read
Turn Game Boy Color Boot ROM Animation into a Retro Web Button – Step‑by‑Step Guide
You can extract the Game Boy Color boot ROM animation and turn it into an 88 × 31 retro web button by using the SameBoy emulator to capture each frame, processing the frames with ImageMagick and Aseprite, and finally applying a custom Python color‑remap script to fix ghosting and colour limits.
From Cartridge to Web: A Retro‑Gaming Design Journey
Retro 88 × 31 web buttons have resurfaced on personal blogs, portfolios, and even corporate sites as a nostalgic nod to the 1990s internet aesthetic. Among the most iconic of these is the Game Boy Color (GBC) boot ROM animation, a short, looping splash that greets every player when the console powers up. This article walks you through the full pipeline—starting with the original ROM, extracting each frame, polishing the graphics, and finally publishing a ready‑to‑use web button.
For a deeper dive into the original inspiration, see the original tutorial that sparked this guide.
Background on the Game Boy Color Boot ROM Animation
The GBC boot ROM is a 175‑frame sequence stored in the console’s firmware. It displays the iconic “Game Boy” logo, fades from a deep blue to white, and then clears the screen. Because the animation runs at the native LCD resolution of 160 × 144 pixels, it contains more detail than the 88 × 31 button space can accommodate, which is why a careful extraction and scaling process is required.
Beyond nostalgia, this animation is a perfect case study for developers who want to repurpose legacy graphics for modern web interfaces—especially when dealing with strict colour palettes and limited dimensions.
Step‑by‑Step Extraction Using SameBoy Emulator
SameBoy is an open‑source Game Boy emulator that supports breakpoints and high‑resolution screenshot capture, making it ideal for frame‑by‑frame extraction.
Required Tools
- SameBoy (latest release)
- Command‑line access (macOS/Linux terminal or Windows PowerShell)
- Basic knowledge of GBZ80 assembly (optional, for deeper debugging)
Procedure
- Download the official SameBoy binary and place the
gbc_boot.romfile in the same directory. - Open SameBoy, load the ROM, and open the debugger (⌘ + D on macOS).
- Set a breakpoint at the
Wait_for_next_VBLANKroutine (address$0211) to pause after each frame. - Run the emulator, and each time it stops, press ⌘ + S (or the “Save Screenshot” button) to export a PNG of the LCD framebuffer. The screenshots are saved at the native 160 × 144 resolution.
- Repeat until the animation loops back to the first frame. You will end up with 175 PNG files named
frame001.png…frame175.png.
All screenshots are stored in a folder called gbc_frames. This collection is the raw material for the next stage.
Image Processing Workflow with ImageMagick and Aseprite
With the raw frames ready, the goal is to crop, resize, and frame the animation to fit the 88 × 31 button canvas while preserving the original colour dynamics.
Why Use Both Tools?
ImageMagick excels at batch processing and command‑line pipelines, while Aseprite offers a pixel‑perfect UI for measuring and fine‑tuning sprite dimensions.
Cropping the Logo
Open the first frame in Aseprite, enable the pixel grid, and measure the “Game Boy” logo. It occupies 127 × 22 pixels, starting at (16, 48). Use ImageMagick to crop all frames in one go:
magick mogrify -crop 127x22+16+48 +repage gbc_frames/*.png
Resizing to Button Width
The target button width is 88 px, leaving a 2‑pixel border on each side. Resize the cropped frames to 82 × 14 (maintaining aspect ratio) so they fit comfortably inside the final canvas:
magick mogrify -resize 82x gbc_frames/*.png
Adding the Grey Frame
Most 88 × 31 buttons use a 2‑pixel grey border (#C0C0C0). The following pipeline centers the resized logo, adds the border, and creates a looping GIF:
magick convert gbc_frames/*.png \
-gravity center -background "#C0C0C0" -extent 88x31 \
-coalesce null: frame.png -layers composite \
-loop 0 -delay 2 button.gif
The resulting button.gif is a functional 88 × 31 web button, but it still suffers from two visual issues: a lingering white background and colour ghosting during the fade‑out.
Python Script for Color Remapping and Ghost‑Free Fade
The original GBC animation fades from a deep blue (#006BFF) to pure white (#FFFFFF). When the background is changed to grey, the white‑to‑grey transition leaves a faint “ghost” that appears as a semi‑transparent halo. The solution is to remap every intermediate colour to a corresponding shade of grey.
Generating the Colour Map
First, extract the unique colours from the original frames:
mkdir original_frames
magick button.gif original_frames/%03d.png
for f in original_frames/*.png; do
magick "$f" -format %c histogram:info: | sort -nr > "${f%.png}_hist.txt"
done
From the histograms, isolate the 24 colours that belong to the blue‑to‑white fade (see the original tutorial for the exact list). Save them in fade_colors.txt.
Remap Script
The script below reads each hex colour, computes its relative position in the original fade range, and maps it to the new range that ends at the button’s grey background (#C0C0C0).
#!/usr/bin/env python3
import re
def hex_to_rgb(hex_str):
hex_str = hex_str.lstrip('#')
return tuple(int(hex_str[i:i+2], 16) for i in (0, 2, 4))
def rgb_to_hex(rgb):
return '#{:02X}{:02X}{:02X}'.format(*rgb)
def remap_color(rgb, start_old, end_old, start_new, end_new):
# Linear interpolation based on the red channel (all channels change proportionally)
t = (rgb[0] - start_old[0]) / (end_old[0] - start_old[0]) if end_old[0] != start_old[0] else 0
return tuple(
max(0, min(255, round(start_new[i] + t * (end_new[i] - start_new[i]))))
for i in range(3)
)
start_old = hex_to_rgb('#006BFF')
end_old = hex_to_rgb('#FFFFFF')
start_new = hex_to_rgb('#006BFF')
end_new = hex_to_rgb('#C0C0C0')
with open('fade_colors.txt') as f:
old_colors = [line.strip() for line in f if line.strip()]
new_colors = [rgb_to_hex(remap_color(hex_to_rgb(c), start_old, end_old, start_new, end_new))
for c in old_colors]
# Output ImageMagick replace commands
cmd_parts = []
for old, new in zip(old_colors, new_colors):
cmd_parts.append(f'-fill "{new}" -opaque "{old}"')
print(' \\\n'.join(cmd_parts))
Run the script and pipe its output into the final ImageMagick command:
magick button.gif \
$(python3 remap.py) \
-resize 82x \
-gravity center -background "#C0C0C0" -extent 88x31 \
-loop 0 -delay 2 final_button.gif
The resulting final_button.gif is free of ghosting and perfectly matches the grey frame.
Challenges Faced and How We Solved Them
- Ghosting during fade‑out: Resolved by remapping the blue‑to‑white palette to a blue‑to‑grey gradient using the Python script.
- Colour depth limitation: The GBC uses a 15‑bit palette; ImageMagick’s default PNG output preserves full colour, but the final GIF is limited to 256 colours. We forced the palette to include only the remapped colours to avoid dithering artifacts.
- Aspect‑ratio distortion: By cropping to the exact logo bounds before scaling, we kept the logo’s proportions intact while fitting the 88 × 31 canvas.
- Automation overhead: The entire pipeline can be wrapped in a
Makefileor a Workflow automation studio on UBOS, allowing one‑click regeneration when the source ROM changes.
The Final 88 × 31 Web Button
Below is the finished button, ready to embed in any HTML page. The <img> tag uses the generated GIF, and the surrounding <a> element makes it clickable.
Feel free to replace https://example.com with any URL you want the button to point to—your portfolio, a product page, or a retro‑gaming forum.
Conclusion: Turning Legacy Pixels into Modern UI Assets
Extracting the Game Boy Color boot ROM animation and converting it into a compact 88 × 31 web button demonstrates how classic game assets can be repurposed for contemporary web design. The workflow—emulator capture, batch image processing, and colour remapping—can be adapted to any 8‑bit or 16‑bit sprite set, giving designers a powerful toolset for nostalgic UI elements.
If you’re looking to streamline similar pipelines, consider the UBOS platform overview, which offers a low‑code environment for automating image‑processing tasks. For startups eager to prototype quickly, the UBOS for startups page showcases ready‑made templates, including the AI Image Generator that can batch‑create assets from text prompts.
Developers who need to integrate AI‑driven workflows can explore the AI marketing agents for automated content generation, or the UBOS partner program to collaborate on custom extensions such as a Telegram integration on UBOS that notifies you when a new button build finishes.
For those interested in voice‑enabled UI, the ElevenLabs AI voice integration can read out button descriptions for accessibility. And if you want to store the generated GIFs in a searchable vector database, the Chroma DB integration makes semantic search a breeze.
Finally, to keep your web assets lightweight, review the UBOS pricing plans for a tier that includes CDN hosting and automated image optimisation.
Try It Yourself
Ready to create your own retro button? Follow the steps above, or jump straight into a pre‑configured UBOS UBOS templates for quick start that include a ready‑made SameBoy‑to‑GIF pipeline. Share your creations on social media with the hashtag #RetroWebButton and let the community vote on the best designs.
Need help? Our About UBOS page lists support channels, and the Enterprise AI platform by UBOS can scale the process for large‑scale branding campaigns.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.
