HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 695 forks source link

Problem with increasing edition size to anything other than 10 #62

Closed CryptoDynasty closed 2 years ago

CryptoDynasty commented 2 years ago

Did anyone ever figure out which sections you make changes to, so you can increase the creation amount? I made a change only to

// amount of NFTs to generate in edition const editionSize = 50;

anything other than 10 results in

let num = Math.floor(Math.random() * layer.elementIdsForRarity[_rarity].length); error

If I change // amount of NFTs to generate in edition const editionSize = 50;

to

// amount of NFTs to generate in edition const editionSize = 10;

without changing any other code it works fine.

Ponda1 commented 2 years ago

Along with changing the edition size you have to change the values of the number of super_rare , rare and original editions made to match however many editions you are making. If its still not clear then refer to issue #22.

CryptoDynasty commented 2 years ago

Thanks!, Ponda!