More on CONTTW and color tables [message #504] |
Fri, 11 September 1992 08:42 |
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
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
|
|
|