comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Automated Map colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Automated Map colors [message #81049] Mon, 30 July 2012 15:29
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I have a program that creates connected filled polygons It ends up looking like a map where each country is in a different color (or at least countries that border on each other have a different color). Right now I choose my colors by getting an array of color names from cgcolor(/names), and randomly assigning a color to each polygon. Sometimes this looks OK, and sometimes it looks, um, like the colors were chosen at random. Anyone have any suggestions on how to intelligently pick colors for a map? There are about 50 polygon regions, but their sizes and location can change on each iteration.

Thanks, --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: shifted .kml created with IDL
Next Topic: if you are able to access the internet at your spare time and wish to earn some $100 - $200 per month, then you are landed at the right place. this community is for you only !!!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:22 PDT 2025

Total time taken to generate the page: 0.00484 seconds