Jay Roy
asked on
avoiding darker colors
hi experts
In my javascript code i am using
But sometimes the color generated is black which i dont want.
Is there anyway i can avoid black or darker colors?
thanks.
In my javascript code i am using
colors[item] = '#' + Math.random().toString(16).slice(2, 8);
to generate a random color.But sometimes the color generated is black which i dont want.
Is there anyway i can avoid black or darker colors?
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks,
Any help with this question will be greatly appreciated.
https://www.experts-exchange.com/questions/28511714/aligning-buttons-next-to-combo-box.html?anchorAnswerId=40304512#a40304512
Any help with this question will be greatly appreciated.
https://www.experts-exchange.com/questions/28511714/aligning-buttons-next-to-combo-box.html?anchorAnswerId=40304512#a40304512
Another option would be to normalize the randomly generated RGB values.
Either way, you'd have to generate each color value separately, rather than all at once.