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

Generate traits randomly #48

Open bgastaldo opened 2 years ago

bgastaldo commented 2 years ago

Hello, I downloaded this code and can't figure out how to make the script go through each trait randomly. It seems to go through each individual trait one by one, starting from the top. Then it matches that trait with every possibility, then to the next. I would like to have it randomly cycle through different traits. I think this would also help a lot with the issue I and others are having where it keeps trying the same traits over and over again and not completing more than a certain amount. Thanks for any help.