From 0814dce0a29af68af9bccf1870ecb57edbe9e390 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Nov 2025 20:55:38 +0000 Subject: [PATCH] fix: correct Pokemon Red/Blue CGB palette RGB555 values Updated Pokemon Red and Blue DMG colorization palettes to match the accurate RGB555 values from the Game Boy Color boot ROM. The previous values were incorrect, resulting in wrong colors. Changes: - Pokemon Red: Fixed background reds and object lime green colors - Pokemon Blue: Fixed background blues (was showing red!) and object red colors Source: Bulbapedia CGB palette data, converted from RGB888 to RGB555 using the formula: (R>>3) | (G>>3)<<5 | (B>>3)<<10 --- src/Ppu/DmgPalettes.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Ppu/DmgPalettes.php b/src/Ppu/DmgPalettes.php index 3c62a08..cf2d39d 100644 --- a/src/Ppu/DmgPalettes.php +++ b/src/Ppu/DmgPalettes.php @@ -69,17 +69,17 @@ class DmgPalettes // Pokemon Red - Red tones with green sprites 'pokemon_red' => [ 'name' => 'Pokemon Red', - 'bg' => [0x7FFF, 0x3FE6, 0x12A4, 0x0000], // White, Light Red, Red, Black - 'obj0' => [0x7FFF, 0x3E1F, 0x0140, 0x0000], // White, Light Green, Green, Black - 'obj1' => [0x7FFF, 0x3FE6, 0x12A4, 0x0000], // White, Light Red, Red, Black + 'bg' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black + 'obj0' => [0x7FFF, 0x1BEF, 0x0200, 0x0000], // White, Lime Green, Dark Green, Black + 'obj1' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black ], - // Pokemon Blue - Blue tones with complementary sprites + // Pokemon Blue - Blue tones with red sprites 'pokemon_blue' => [ 'name' => 'Pokemon Blue', - 'bg' => [0x7FFF, 0x329F, 0x001F, 0x0000], // White, Light Blue, Blue, Black - 'obj0' => [0x7FFF, 0x3E1F, 0x0140, 0x0000], // White, Light Green, Green, Black - 'obj1' => [0x7FFF, 0x329F, 0x001F, 0x0000], // White, Light Blue, Blue, Black + 'bg' => [0x7FFF, 0x7C8C, 0x7C00, 0x0000], // White, Light Blue, Blue, Black + 'obj0' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black + 'obj1' => [0x7FFF, 0x7C8C, 0x7C00, 0x0000], // White, Light Blue, Blue, Black ], // Pokemon Yellow - Yellow tones