Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/michaelliao/1024pixels
- Owner: michaelliao
- License: gpl-3.0
- Created: 2023-02-01T10:57:36.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-21T13:55:10.000Z (over 1 year ago)
- Last Synced: 2024-11-16T06:23:22.866Z (3 months ago)
- Topics: blockchain, erc165, erc2981, erc721, nft, pixel-art, polygon
- Language: HTML
- Homepage: https://1024pixels.art
- Size: 490 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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..."
```