michaelliao / 1024pixels

Create 32 x 32 = 1024 pixels art as NFT on Polygon blockchain.

Home Page:https://1024pixels.art

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1024 Pixels Art

1024pixels.art allows anyone create 32 x 32 = 1024 pixels GIF images and stores on Polygon blockchain which makes the image unique and immutable.

NFT Format

1024Pixels follow the ERC-721 standards, and supports ERC-165, ERC-2981.

Image Format

1024Pixels stores as 32x32 GIF format with 64 index colors (63 RGB colors and 1 transparent color). The tokenID is the hash of index colors so there are no same images on chain.

Only the pixels of index colors stores on chain, and there is exactly 1KB data stores on chain. The GIF image data is generated by read method on the fly, so no GAS cost for image generation!

How to Get Image from Blockchain

Read the contract 0x1024E76fbe54D1016f973FaD36f34ce94D9a128D:

imageURI() returns GIF image as Base64 encoded:

imageURI(tokenId) =>
"data:image/gif;base64,R0lGODlhYABgAPU/AP/AwP//wMD/wA..."

tokenURI() return JSON metadata including the image:

tokenURI(tokenId) =>
"data:application/json;base64,eyJuYW1lIjoiMTAyNCBQaXhlbHMgIy..."

About

Create 32 x 32 = 1024 pixels art as NFT on Polygon blockchain.

https://1024pixels.art

License:GNU General Public License v3.0


Languages

Language:HTML 70.2%Language:TypeScript 15.6%Language:Solidity 6.3%Language:JavaScript 5.3%Language:Python 2.5%