Fighting the war against web bloat.
Some aftermarket GameBoy IPS screens come with a display controller with an on screen menu which allows to customize the color palette of original GameBoy games.
Sadly, the key combinations required to move through the OSD menu are quite awkward and the menu timeout is rather short. This tool aims to experiment and preview your palette before keying it into your console.
Use the sliders below to choose the RGB values for each color, and preview the palette on the right.
| Color 0 | Color 1 | Color 2 | Color 3 |
I learned quite a lot about Javascript trying to create this tool, especially how to wirte to a canvas pixel by pixel by applying a color palette to an image stored as an array of colors.
The javascript code is now much optimized than the first varsion, especially in the element update function and in the canvas rendering subroutine: RGB values were computed 3 times for each iteration (that's about 69120nice times per function call, which happened for every update of any one of the sliders).

Last updated 2022-05-03