- NAME
PIXCOLOR
- PURPOSE
Assign colors to specified pixel values in a color lookup table
- EXPLANATION
Colors can be specified either from the list in cgcolor
(http://www.idlcoyote.com/programs/cgcolor.pro ) or as 1 letter
abbreviations for 8 common colors.
- CALLING SEQUENCE
PIXCOLOR, pixvalue, color ;Set color at specified pixel values
- INPUT PARMETERS
pixvalue - value or range of pixel values whose color will be modified.
A single pixel value may be specified by an integer
If a range of values is specified, then it must be written
as a string, with a colon denoting the range (e.g.'102:123')
If omitted, program will prompt for this parameter.
AL INPUT PARAMETER
color - scalar string specifying either a full color name available in
CGCOLOR, or a single character string giving one of the
specified colors: 'R' (red), 'B' (blue), 'G' (green)
'Y' (yellow), 'T' (turquoise), 'V' (violet), 'W' (white)
or 'D' (dark). If omitted, program will prompt for this
parameter.
- OUTPUTS
None
- PROCEDURE
TVLCT is used in RGB mode to load the specified pixel values.
- EXAMPLE
Set pixel values of 245 to a color of red
IDL> pixcolor,245,'R'
et pixel values 120 to 150 to Magenta
DL> pixcolor,'120:150','Magenta'
- REVISION HISTORY
Written, W. Landsman ST Systems Corp. February, 1987
Converted to IDL V5.0 W. Landsman September 1997
llow specification of cgcolor names April 2011