[gameprogrammer] mapping numbers to colors
- From: "Alan Wolfe" <atrix2@xxxxxxx>
- To: <gameprogrammer@xxxxxxxxxxxxx>
- Date: Thu, 2 Dec 2004 13:38:29 -0800
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
- Follow-Ups:
- [gameprogrammer] Re: mapping numbers to colors
- From: Stephane Marchesin
- [gameprogrammer] Re: mapping numbers to colors
- From: Jake The Snake Briggs
Other related posts:
- » [gameprogrammer] mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- » [gameprogrammer] Re: mapping numbers to colors
- [gameprogrammer] Re: mapping numbers to colors
- From: Stephane Marchesin
- [gameprogrammer] Re: mapping numbers to colors
- From: Jake The Snake Briggs