|
Re: change colors on colortable [message #94409 is a reply to message #94407] |
Thu, 11 May 2017 03:06  |
Nikola
Messages: 53 Registered: November 2009
|
Member |
|
|
On Wednesday, May 10, 2017 at 11:58:52 PM UTC+1, John Sofiadis wrote:
> hi!i wonder if anyone could inform me how to change colors at a given colortable.thank you in advance!
A color table consists of three arrays, each with 256 elements with values in the range [0, 255]. Arrays correspond to the red, green and blue channel (axis of the color cube). To see the arrays that are currently active, execute
TVLCT, r, g, b, /get
To change manually the color scale, alter the arrays r, g, b as you want and then execute
TVLCT, r, g, b
If you want to select one of the IDL predefined color tables, you can do it using
LOADCT, number of the color table (0 = grayscale, 13 = rainbow, etc).
|
|
|