PDA

View Full Version : QColor generator?



Khaine
29th March 2016, 16:02
Is there something in Qt which would allow me to generate not-so-random colors? By not-so-random I mean, that I would like these colors to be in accustomed order - for example black, red, blue, green, purple etc, to be sure that these colors are distinguishable from each other (at least several first colors). I need to have quite big amount of these, 100 at least. Generating them manually would be a gigantic pain, so maybe there is some kind of intelligent color generator?

Ginsengelf
30th March 2016, 07:10
Hi, do you need each of the hundred colors to be distinguishable from the other 99? Or only from its neighbours? It the latter case you could try to circle around blue, green, red, yellow, blue, green, ... with different saturations. Then each color would have three colors in either direction that look quite different.

Ginsengelf

Khaine
30th March 2016, 10:35
It would be better if all of them were distinguishable. But it's not actually possible over first few dozens of colors.