topcolor24 Graphics, Color
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
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 137 2006-07-12 09:33:44Z smasson $
History
Written by: David Fanning, 3 February 96.
Statistics
McCabe cyclic | 4 |
McCabe essential | 1 |
McCabe modular design | 1 |