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

Home » Public Forums » archive » More on CONTTW and color tables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
More on CONTTW and color tables [message #504] Fri, 11 September 1992 08:42
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
Before the onslaught begins, If you want to have black be black and
white be white in CONTTW you might consider adding the following lines of code
to CONTTW just after the LOADCT call.

r=[0b,255b,0b,0b,255b]
g=[0b,0b,255b,0b,255b]
b=[0b,0b,0b,255b,255b]

tvlct,r,g,b,251

Around here we do not like or use the supplied IDL color tables and have our
own set. We have decided to utilize only the first 251 colors and reserve the
last 5 for black, red, green, blue, and white. This is what CONTTW expects.
If you have adopted a similar scheme you can just change CONTTW to correspond
to your definitions of black and white. Otherwise the code listed above will
modify the color table to work with CONTTW.

Hope this helps,

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: EXPAND.PRO - needed by CONTTW.PRO
Next Topic: Re: EXPAND.PRO - needed by CONTTW.PRO

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

Current Time: Wed Oct 08 19:15:28 PDT 2025

Total time taken to generate the page: 0.00554 seconds