Re: color table reversal (?) [message #5079] |
Fri, 22 September 1995 00:00 |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <CHARLES.95Sep20134534@omcen.berkeley.edu>, charles@omcen.berkeley.edu (Charles E. Bartels 515) writes:
>
> Does anyone know of a way to reverse the color table in IDL through
> the command line or inside a program? The only way I presently know
> how to do this is with "xloadct."
>
> I need to be able to do this because it appears that "xloadct" does
> not run under 24-bit color Spark 5 w/solaris 2.3.
>
>
You can look at the souce of xloadct to see how it is done there, and make
whatever modifcations are needed for a 24 bit display. It is basically done
with
IDL> tvlct, r, g, b, /get
IDL> r = reverse(r) & g = reverse(g) & b = reverse(b)
IDL> tvlct, r,g, b
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|
Re: color table reversal (?) [message #5080 is a reply to message #5079] |
Thu, 21 September 1995 00:00  |
Stephen Herman
Messages: 6 Registered: September 1995
|
Junior Member |
|
|
charles@omcen.berkeley.edu (Charles E. Bartels 515) wrote:
>
> Does anyone know of a way to reverse the color table in IDL through
> the command line or inside a program? The only way I presently know
> how to do this is with "xloadct."
>
> I need to be able to do this because it appears that "xloadct" does
> not run under 24-bit color Spark 5 w/solaris 2.3.
>
>
> -Charles Bartels
> --
>
>
> -Charles Bartels
How about using the LOADCT procedure to load a reverse color table?
Stephen Herman
|
|
|