Skip to content

patrickmcnamara/bi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bad Image (.bi)

bi is a library for the BI image format. The BI format encodes images so that they are essentially 2D matrices of plaintext color names such as those found in the CSS Color Module Level 4 or hex quadruplets like #FF69B4FF. There is also support for third party color models. Nice.

For example, a valid 2x2 pixel image is:

bi,v1
red,green
blue,white

Examples


Before BI encoding.

Before BI encoding.


After BI encoding using the CSS Color Module Level 4 color model. And re-encoded as PNG obvs.

After BI encoding using the CSS Color Module Level 4 color model. And re-encoded as PNG obvs.


License

This project is licensed under the MIT license.