comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: New color palette
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: New color palette [message #79608 is a reply to message #79606] Tue, 20 March 2012 13:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
KH writes:

> I am looking for a cyan to blue to white to red to yellow color
> palette similar to the one here:
> http://www-meom.hmg.inpg.fr/Web/pages-perso/brankart/Ferret_ scripts/white_centered.gif.
>
> Specifically I am looking for a 256 version of the white_centered.spk
> palette from Ferret. It is my understanding that Ferret interpolates
> the colors from the following:
> 0 0 100 100
> 20 20 20 100
> 35 100 100 100
> 65 100 100 100
> 80 100 20 20
> 100 100 100 0
> I believe the first column is the percentage value, but I am just not
> sure how to use on 6 RGB values to get a full color palette I can use
> in IDL.
>
> Any assistance would be greatly appreciated.

You would do it like this:

http://www.idlcoyote.com/color_tips/create_colortable.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Replicate array over columns - using transpose?
Next Topic: Bug(s) in debugger? Breakpoint stepping for nested HASH's.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:50:11 PDT 2025

Total time taken to generate the page: 0.24229 seconds