dimar has asked for the wisdom of the Perl Monks concerning the following question:
Elise teaches elementary school students learning social studies. She has asked me write a quick application that will help the students make up flags for their own newly-declared sovereign nations.
The problem is this, some of the students want to design flags with many different regions, and they want the computer to randomly choose the colors for the regions. Moreover, the 'randomly' colored regions should be 'reasonably distinguishable' (for example, if the flag has two regions, the two 'randomly' chosen colors should not be 'yellow' and 'lightyellow'
Assuming I am working with, say for example, the list of named colors available in your typical web browser, is there a way to choose (n) colors such that all (n) are 'reasonably distinguishable' from each other?
No, this is not a homework question, but if you are incredulous I am more than happy to accept a vague outline of how to approach this problem, or a citation to a website, or a S suggestion for TFW, or a M to go FR.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Choosing Colors for Custom Flags
by Corion (Patriarch) on Jul 17, 2004 at 19:48 UTC | |
|
Re: Choosing Colors for Custom Flags
by gaal (Parson) on Jul 17, 2004 at 19:45 UTC | |
|
Re: Choosing Colors for Custom Flags
by Old_Gray_Bear (Bishop) on Jul 17, 2004 at 20:05 UTC | |
by beable (Friar) on Jul 17, 2004 at 23:51 UTC | |
|
Re: Choosing Colors for Custom Flags
by aquarium (Curate) on Jul 18, 2004 at 01:18 UTC | |
|
Re: Choosing Colors for Custom Flags
by qq (Hermit) on Jul 18, 2004 at 12:58 UTC | |
|
Re: Choosing Colors for Custom Flags
by techy (Scribe) on Jul 18, 2004 at 14:26 UTC |