Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelliao/1024pixels

Create 32 x 32 = 1024 pixels art as NFT on Polygon blockchain.
https://github.com/michaelliao/1024pixels

blockchain erc165 erc2981 erc721 nft pixel-art polygon

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 1024 Pixels Art

[1024pixels.art](https://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](https://polygonscan.com/address/0x1024E76fbe54D1016f973FaD36f34ce94D9a128D#readContract):

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..."
```