DEV Community

Discussion on: NFT images generator with Javascript Nodejs (800,000 cryptopunks)

Collapse
 
jayaych profile image
Jeremy H

Is there a way to use this so that one [blank] background is divided into 6 squares and each of those squares is filled by a random image from a large list (with rarity amounts)?

Sorry if that’s a dumb question: I’m brand new to coding so I barely know what I’m looking at. Any help is super appreciated!

Collapse
 
victorquanlam profile image
Victor Quan Lam

This script won't support with rarity because it will generate every possible combination of the trait layers (aka attributes). You can add rarity of these attributes into the script. However, I have another blog post maybe quiet similar to your idea. It has rarity and different shapes which would be quiet easy to follow especially for beginner.
dev.to/victorquanlam/nft-images-ge...

Collapse
 
jayaych profile image
Jeremy H

Ah that makes sense! Thank you this is extremely helpful!

Collapse
 
flpvdmt profile image
Dmitrii Filippov

Hey!
This page no longer exists
Perhaps you have article on another resource or code example, so please be so kind as to share it)