maelstrom-research / Rmonize

3 stars 0 forks source link

[Enhancement] Colors when >4 categories #39

Open twey2 opened 8 months ago

twey2 commented 8 months ago

When the there are more than 4 colors, the same color (blue) gets used for the last categories (green, yellow, red, blue, blue). Either use different colors, or recycle colors but starting at green again, so 5 categories displays as green, yellow, red, blue, green.

image image

GuiFabre commented 8 months ago

The color scheme is taken from maelstrom colors. The first graphic element will always be green, then the second yellow, the third is red, and then blue. Any additional will be picked from the rest of the palette (which is linearised and picked randomly.

unfortunatelly, sometimes the color chosen in the palette are not realy different from each other. that will be evaluated in the next version

twey2 commented 7 months ago

Ok. Instead of picking randomly, why not just recycle the color vector to whatever length, so that the fifth element is always green, the sixth yellow, and so on?