From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <85f83229e10e554410d6d6922cbfb3c0@plan9.bell-labs.com> From: Eric Grosse To: 9fans@cse.psu.edu Subject: Re: [9fans] alg to make a good colour palette for a graph In-Reply-To: <20030221160829.1b2eca90.ggm@apnic.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 21 Feb 2003 01:39:04 -0500 Topicbox-Message-UUID: 6ca46de4-eacb-11e9-9e20-41e7f4b1d025 It depends on the monitor. Take a look at http://plan9.bell-labs.com/cm/cs/doc/85/4-01.ps.gz That solution (which used l2 optimization over a psychophysical color difference metric) gave very good results, but is way too complicated for awk. You can run the computation once, build a decent spline approximation to the hue curve, and use awk to interpolate in the table, given . That's the approach of http://plan9.bell-labs.com/netlib/graphics/rainbow.c.gz Eric