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

Home » Public Forums » archive » Re: Inverting colourtable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Inverting colourtable [message #25661 is a reply to message #25660] Thu, 05 July 2001 06:07 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi,

You can use the TVLCT procedure to get and then set the colors...

IDL> tvlct, r,g,b, /get
IDL> help, r,g,b
R BYTE = Array[256]
G BYTE = Array[256]
B BYTE = Array[256]
IDL> tvlct, reverse(r), reverse(g), reverse(b)

Ben

Simon de Vet wrote:
>
> I've been printing a lot of filled contour maps using the B&W colour
> table (CT#0). This was great when I had mostly white or light grey
> values, but lately I've been in the black, and this seriously eats up
> the toner.
>
> Is there an quick and easy way to reverse the colours in a colourtable?
>
> -- Simon

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Warping surfaces to match control points
Next Topic: set_shading question

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

Current Time: Fri Oct 10 13:59:07 PDT 2025

Total time taken to generate the page: 0.88190 seconds