Function GraGetRGBIntensity() Foundation

Calculates color intensities for red, green and blue from a RGB color value.

Syntax
GraGetRGBIntensity( <nRGBColor> ) --> aRGB | NIL
Parameters
<nRGBColor>
The parameter is a numeric RGB color value.
Return

The function returns an array with three elements. Each element contains an integer in the range from 0 to 255 indicating the color intensity for red, green and blue: {nRed, nGreen, nBlue}.

If <nRGBColor> is not a valid RGB color value, the function returns NIL.

Description

The function is used to obtain the individual color intensities for the three colors red, green and blue from a RGB color value. The latter is returned by the function GraMakeRGBColor().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.