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

Home » Public Forums » archive » Colors Common Block?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Colors Common Block? [message #12540] Thu, 20 August 1998 00:00 Go to previous message
dirk is currently offline  dirk
Messages: 15
Registered: March 1998
Junior Member
A question about color tables:

I want a simple inverted black and white color table, and i define it
with red, green, and blue arrays that all run from 255 to 0. Then i load
them in with

tvlct,red,green,blue

No problem. BUT, now I want to play with the stretch and gamma correction
for this new color table just like with xloadct.

The functions gamma_ct and stretch seem to be designed for this, but they
always remove my color table and re-establish the old black and white.
Adding the /Current keyword doesn't help.

The /current keyword is described as:
Set this keyword to apply correction from the "current" color table (i.e.,
the values R_CURR, G_CURR, and B_CURR in the COLORS common block).
Otherwise, correction is applied from the "original" color table (i.e.,
the values R_ORIG, G_ORIG, and B_ORIG in the COLORS common block). The
gamma corrected color table is always saved in the "current" table
(R_CURR, G_CURR, B_CURR) and the new table is loaded.

So I have a feeling that i need to somehow edit this Colors common block
so it has my tvlct values in R_Curr, G_CURR, and B_CURR.


Can anyone help before i resort to (shudder) IRAF?

Thanks!
- Dirk
[Message index]
 
Read Message
Read Message
Previous Topic: REPEAT BEGIN turns into & END... why?
Next Topic: Call_External and Re-Compiling C programs

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

Current Time: Wed Oct 08 17:10:23 PDT 2025

Total time taken to generate the page: 0.00360 seconds