Skip to content

Commit 0814dce

Browse files
committed
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
1 parent 3fd1ed6 commit 0814dce

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Ppu/DmgPalettes.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ class DmgPalettes
6969
// Pokemon Red - Red tones with green sprites
7070
'pokemon_red' => [
7171
'name' => 'Pokemon Red',
72-
'bg' => [0x7FFF, 0x3FE6, 0x12A4, 0x0000], // White, Light Red, Red, Black
73-
'obj0' => [0x7FFF, 0x3E1F, 0x0140, 0x0000], // White, Light Green, Green, Black
74-
'obj1' => [0x7FFF, 0x3FE6, 0x12A4, 0x0000], // White, Light Red, Red, Black
72+
'bg' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black
73+
'obj0' => [0x7FFF, 0x1BEF, 0x0200, 0x0000], // White, Lime Green, Dark Green, Black
74+
'obj1' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black
7575
],
7676

77-
// Pokemon Blue - Blue tones with complementary sprites
77+
// Pokemon Blue - Blue tones with red sprites
7878
'pokemon_blue' => [
7979
'name' => 'Pokemon Blue',
80-
'bg' => [0x7FFF, 0x329F, 0x001F, 0x0000], // White, Light Blue, Blue, Black
81-
'obj0' => [0x7FFF, 0x3E1F, 0x0140, 0x0000], // White, Light Green, Green, Black
82-
'obj1' => [0x7FFF, 0x329F, 0x001F, 0x0000], // White, Light Blue, Blue, Black
80+
'bg' => [0x7FFF, 0x7C8C, 0x7C00, 0x0000], // White, Light Blue, Blue, Black
81+
'obj0' => [0x7FFF, 0x421F, 0x1CF2, 0x0000], // White, Light Red, Red, Black
82+
'obj1' => [0x7FFF, 0x7C8C, 0x7C00, 0x0000], // White, Light Blue, Blue, Black
8383
],
8484

8585
// Pokemon Yellow - Yellow tones

0 commit comments

Comments
 (0)