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

Home » Public Forums » archive » Re: How to add modified color tables to IDL 7.1
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: How to add modified color tables to IDL 7.1 [message #79643 is a reply to message #79642] Thu, 15 March 2012 14:15 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Modify your palette using XPALETTE. Then, you can retrieve the RGB values with TVLCT, r, g, b, /GET and create a SAV file with these values SAVE, FILENAME='myrainbowpalette.sav', r, g, b

After that, if you want to use these same colors again, you can restore the palette RESTORE, 'myrainbowpalette.sav' and set the colors using TVLCT, r, g, b

Another option is to modify the palette using MODIFYCT. You can create your own color-palette-table or overwrite the existing one (even if this is not a good idea). If you create your table, you will have to specify the file LOADCT, FILE=file, or MODIFYCT, FILE=file

Dale !
nata
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Convert from raster to PNG
Next Topic: New color palette

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

Current Time: Thu Oct 09 23:06:45 PDT 2025

Total time taken to generate the page: 0.32260 seconds