KPG1_GPCOL

Obtains the red, green and blue intensities of a colour by value or by name for the standard colour set

Description:

This routine obtains a colour via the ADAM parameter system. The colour may be either a named colour from the colour set; or red, green, and blue intensities separated by commas or spaces. If the named colour does not exist, or there is a problem extracting and converting the RGB values, or the RGB values are out of the range 0.0 to 1.0, an error is reported immediately and the user is prompted for another value.

Invocation

CALL KPG1_GPCOL( PNCOL, RGBINT, STATUS )

Arguments

PNCOL = CHARACTER ( ) (Given)
The name of the ADAM parameter used to obtain the colour. It must be of type _CHAR or LITERAL.
RGBINT( 3 ) = REAL (Returned)
The red, green and blue intensities of the selected colour. They are normalised to the range 0.0 to 1.0.
STATUS = INTEGER (Given and Returned)
The global status.