I’m trying to create a list of colors that are unique or easily identifiable as being different when shown as the background colour of a cell in a listbox.
Currently I’m dividing the hue by the number of colors required as follows:
Dim ColDiv As Double = 1 / NumColors
for i = 1 to NumColors
Dim HueValue As Double = ColDiv * i
ColorList.Append HSV(HueValue, SatValue, ColValue)
next
But when for example I create a list of 8 colors I get two very similar looking green colors. I need to be able to create a range of colors that can be in the 100s, but when there are less than say 10 colors I’d like them to be easily identifiable.
Any ideas?
Thanks
Mark