topcolor24
Graphics, Color
Return value
{type=long integer}
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
type: byte, A three-element array
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])
Version history
Version
$Id: color24.pro 371 2008-08-07 09:32:02Z pinsard $
History
Written by: David Fanning, 3 February 96.
Statistics
McCabe cyclic | 4 |
McCabe essential | 1 |
McCabe modular design | 1 |