A set of utilities for working with color in relation to the Game Boy Color.
| binary | description |
|---|---|
| rgb15 | Quantizes 24-bit colors specified in hex or rgb format into 15-bit color. |
| rgb24 | Maps 15-bit colors into 24-bit color. |
| cgbify | Color-corrects 24-bit colors in the style of the Game Boy Color (Pokefan531 method). |
Convert a series of RGB15 (Game Boy Color) colors to RGB24 and apply color correction, displaying them (in compatible terminals) somewhat accurate to the original hardware.
$ cabal run rgb24 -- -p 15,22,9 19,1,12 7,11,31 6,1,1 | cabal run cgbify
██ rgb(138,154,95) #8a9a5f
██ rgb(137,74,107) #894a6b
██ rgb(0,139,217) #08bd9
██ rgb(44,20,23) #2c1417Quantize a series of RGB24 colors to RGB15. The default output (without -p) includes a
preview of a color-corrected conversion back to 24-bit, useful for an indication of how
the color may look on hardware.
$ cabal run rgb15 -- 140,19,76 255,255,170 157,61,12
██ rgb(17,2,9)
██ rgb(31,31,21)
██ rgb(19,7,1)