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 693 forks source link

"addRarityPercentForLayer" not working as expected #134

Closed turbopasi closed 3 years ago

turbopasi commented 3 years ago

Good day !

It seems that addRarityPercentForLayer method is not working for us as expected. Here is an example :

addRarityPercentForLayer( 'legendary', 'Hair', {
  'common' : 0, 
  'uncommon' : 1,
  'rare' : 8,
  'epic' : 33, 
  'legendary' : 58
});

With this setting we expect, that for "legendary" pictures, no "common" Hair is used. (common 0%). In reality, "common" Hair is still being used for "legendary" pictures.

Is this by design, or are we missing something ?

Thanks for any advice !

turbopasi commented 3 years ago

Turned out we were looking at the wrong config file at that point. Everything working as expected.