>> John Forkosh ( mailto:
j...@f.com where j=john and f=forkosh )
<<snipped L.A.'s followup, replied to separately>>
> Wikipedia
>
http://en.wikipedia.org/wiki/List_of_software_palettes
> lists a number of standard palettes in the section
> "RGB arrangements".
Thanks, JW, I'd been looking for something like that.
I'd been using 6*6*7=252, and the extra indexes 0,1,2,3
for 0=bg,1=fg,2=white,3=black. There's usually no
particular fg, so that index is usually wasted.
But ~half the pixels are bg, so bg=0's a no-brainer.
And then black,white let the other 252 colors skip
the "endpoints". Moreover, I'd figured when rgb are
all very low values, or are all high, the human eye
probably sees pretty much black,white, respectively,
so I could spread the indexes over the "middle values".
But haven't tested that (see bottom paragraph).
And I'd managed to google stuff like
http://en.wikipedia.org/wiki/Color_quantization
http://www.imagemagick.org/script/quantize.php
and other stuff from googling "color quantization" and
"Heckbert". But I hadn't found your List_..._palettes.
> Easiest is an even spread for each RGB component: 6-6-6.
> Other options are 6-7-6, which has more shades of green
> (based on the human eye being more sensitive to green),
> and 6-8-5 (because the eye is *less* sensitive to blue)
> and 8-8-4.
What I'd also been thinking of fooling around with was
a 5-5-10 distribution based on the hls model: 5 each
for lightness and saturation, 0.0-1.0, and 10 for hue,
0-360. And then convert those to rgb values, regardless
of how that looks numerically. Seems to me that hls is
more human-eye-oriented. But I couldn't google anything
like that kind of palette generation. And I imagine if
it's a good idea, it's already been done (thousands of
times).
> Usually the full range for the input of each channel (0..255)
> gets spread evenly over the output range, but there might be
> something to gain if you adjust for intensity sensitivity as well.
> Wikipedia does not mention it, so it could be worth investigating,
> even if only empirical (i.e., try some curves and see what
> looks best). [Jw]
Yeah, "try[ing] some curves" is somewhat of a pain.
The code I've written can definitely do that, but
a lot of messing around editing it for each such test.
What I need is a good, easy-to-use tool for these
kinds of experiments. But, again, it's got to have
already been done (thousands of times). Like that
old X-Files tagline, "The answer's out there."
I'd just like to figure out how to google it.
Thanks again,