Associate
- Joined
- 14 Apr 2003
- Posts
- 1,101
Hi,
Im working on a project that requires me to display database records on a map. You can group the records by different fields and I have a different colour for each type. Currently I just choose the colours randomly from the Colors class. However, this chooses identical colours sometimes and it also chooses poor colours (such as white, cream etc) what I want is some sort of maths algorigthm that will generate a range of colours from red to blue (say) then i can take colours at set intervals to give a nice spread.
I know it must be possible but maths isnt my strong point!
any ideas?
Thanks,
Matt
Im working on a project that requires me to display database records on a map. You can group the records by different fields and I have a different colour for each type. Currently I just choose the colours randomly from the Colors class. However, this chooses identical colours sometimes and it also chooses poor colours (such as white, cream etc) what I want is some sort of maths algorigthm that will generate a range of colours from red to blue (say) then i can take colours at set intervals to give a nice spread.
I know it must be possible but maths isnt my strong point!
any ideas?
Thanks,
Matt