Colors/
color24.pro
The purpose of this function is to convert a RGB color triple
into the equivalent 24-big long integer.
color24 Graphics, Color
result = color24(rgb_triple)
Return value
a 24-bit long integer that is equivalent the input color.
The color is described in terms of a hexadecimal number (e.g., FF206A)
where the left two digits represent the blue color, the
middle two digits represent the green color, and the right
two digits represent the red color.
Parameters
rgb_triple
in
required
A three-element column or row array representing
a color triple. The values of the elements must be between 0 and 255.
Examples
To convert the color triple for the color YELLOW,
(255, 255, 0), to the hexadecimal value '00FFFF'x
or the decimal number 65535, type:
IDL> color = COLOR24([255, 255, 0])
This routine was written to be used with routines like COLORS or GETCOLOR
Version history
Version
$Id: color24.pro 163 2006-08-29 12:59:46Z navarro $
History
Written by: David Fanning, 3 February 96.
Produced by IDLdoc 2.0.