HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.18k stars 4.3k forks source link

How to create rarity for a layer group? #1357

Open 48bits opened 2 years ago

48bits commented 2 years ago

How do I config the chance of a layer group being generated?

(eg. I only want 50% of the image to have a background)

bolshoytoster commented 2 years ago

@48bits you could have two layerConfigurations; one with and one without the background.

0xinit commented 2 years ago

@bolshoytoster what are more usecases of layerConfigurations variable? The video doesn't explain very well... but if a trait for example "red eyes" is considered in 2nd layerConfigurations array, then how would it affect the rarity of "red eyes" in the first layerConfiurations?

bolshoytoster commented 2 years ago

@0xinit I don't think it will affect therarity in the first one, but could you give an example layerConfigurations?