Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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
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)