Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: custom color map
Date: Thu, 7 Feb 2008 00:38:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <fodjtc$hcn$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202344684 17815 172.30.248.38 (7 Feb 2008 00:38:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Feb 2008 00:38:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:449765



Is there a way to interpolate between RGB values? I have a
set of values that I want to map (linearly or otherwise) to
colors from a color_min to color_max.  Since RGB is not
"incrementable", how would I do this?

I'd like to actually write the function instead of using
some kind of built in thing because this code is most likely
going to be ported to c++ at some point.

Any suggestions would be great!

Thanks,

David