randomColor icon indicating copy to clipboard operation
randomColor copied to clipboard

Setting the seed produces colors in the same hue range

Open benji opened this issue 6 years ago • 2 comments

When I set the seed to a certain value, then I'm getting either blue-ish or green-ish or orange-ish colors, but never a combination of red/blue/yellow/green.

benji avatar Sep 20 '18 23:09 benji

When there is a seed the colors generated are cyclical, with a length of ~ 24 colors: https://codepen.io/benjist/pen/MqxKqJ

The number N of colors chosen only returns the first N colors of that cycle: which results in very similar colors when N is low: https://codepen.io/benjist/pen/NLJzab

benji avatar Sep 21 '18 06:09 benji

I see the issue, sounds like an improvement to the seed generator is needed. Will fix, eventually!

davidmerfield avatar Feb 13 '19 16:02 davidmerfield