[gameprogrammer] mapping numbers to colors

Hey guys,
wierd question, possibly straight out of the old school days...

I'm making some line graphs and i have X number of groups of data.

X could be 1 or it could be 20, it varies.

What im trying to do is come up with a good way to automaticly set colors to 
these groups of data.

ie if there were 2 groups, 1 line could be red and the 2nd line could be blue.

if there were 4 groups, i could use red, blue, yellow, green for the lines etc.

Does anyone know a way to algorithmicly come up with X number of colors, that 
are as far apart visualy as possible?  Cause if theres 5 groups of data and 
they are all shades of blue, thats not very good.

Thanks a bunch for any help :P
Atrix


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: