Skip to content

ix/cgbtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgbtools

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).

Examples

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) #2c1417

Quantize 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)

About

Utilities for working with 15-bit color (à la Game Boy Color).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Generated from ix/haskell-flake-template