Skip to content

jtardioli/bitmap-art-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitmap Art Gallery

Bitmap 8x8 pixel art stored on-chain.

Live Project

https://bitmap-art.josht.art/

How it works

Bitmap art can be thought of as a digital art studio. It's able to generate 8x8 pixel art images directly in the blockchain

It does this using a very compact method. Rather than storing the color of every pixel directly, it keeps a compact, coded list of color values (the 'bitmap'). Each color value in the list is represented as a 4-bit value, which means it can range from 0 to 15. The contract has a palette of 16 colors it can paint with, so a color value of 0 might correspond to the color white (#ffffff), a value of 1 might be light grey (#aaaaaa), and so on, up to 15.

So, when given a 'bitmap' (the coded list of colors), it can then translate that into a proper picture by reading off each 4-bit value, looking up the color it represents, and painting a square that color. It does this for all 64 squares (8x8) to complete the picture.

Once you've created your bitmap artwork in the studio page you can mint it. This will save your bitmap with an associated tokenId forever in the blockchain. After that your artwork will be available for all to see in the gallery

image image image