Re: Auto color selection PIL
- From: Scott David Daniels <scott.daniels@xxxxxxx>
- Date: Sun, 01 Oct 2006 12:51:46 -0700
Leif K-Brooks wrote:
Gabriel Genellina wrote:Try this. It first chooses 0, 1/2, then 1/4, 3/4, then */8...
It's the best I could make if you don't know the number of colors beforehand. If you *do* know how many colors, your previous response is OK.
I've no better suggestion than either of you, _but_ note that in
choosing colors for keys it is generally considered better ergonomics
to vary more than simply the hue if you don't want to penalize the
colorblind. Consider varying the other two parameters simultaneously
(perhaps in restricted ranges and varying orders); the contrast may be
more substantial even to a viewer with full color vision.
--
--Scott David Daniels
scott.daniels@xxxxxxx
.
- Prev by Date: Re: windev vs python SOS
- Next by Date: Re: Is this a bug? Python intermittently stops dead for seconds
- Previous by thread: Re: How to change menu text with Tkinter?
- Next by thread: python threading and timing
- Index(es):