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

Home » Public Forums » archive » Re: custom color table
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: custom color table [message #32193 is a reply to message #32191] Fri, 20 September 2002 11:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Miklos Z. Kiss (mzkiss@unity.ncsu.edu) writes:

> I am trying to create a custom monochrome color table in IDL. IDL has four
> (maybe five) predefined monochrome color tables (gray scale, red
> temperature, blue-white, and green-white). XPALETTE will allow me to create
> a custom color table, and I can load it using TVLCT, but how do I relate the
> red, green, and blue channels mathematically to create a, say, orange, or
> cyan monochrome color table?

The color cyan is (0, 255, 255), so a monochrome cyan
color table is this:

TVLCT, bytarr(256), bindgen(256), bindgen(256)

The color orange is (255, 165, 0), so a monochrome orange
color table is this:

TVLCT, bindgen(256), BytScl(bindgen(256), top=165), bytarr(256)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL Student Edition released
Next Topic: cyclic colour tables?

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

Current Time: Thu Oct 09 23:21:45 PDT 2025

Total time taken to generate the page: 1.03860 seconds