|
Previous Top Next |
Prototype: | (Long pColor, <*Long pRed>,<*Long pGreen>, <*Long pBlue>) |
pColor | Color to split into RGB |
pRed | Optional parameter to return the Red color |
pGreen | Optional parameter to return the Green color |
pBlue | Optional parameter to return the Blue color |
This method takes a Clarion color and splits it into Red, Green and Blue values.
Example:
ITU ITUtilityClass
R LONG
G LONG
B LONG
Col LONG
CODE
Col = COLOR:Red
ITU.ColorToRGB(Col, R, G, B)
IF ITU.RGBToColor(R, G, B) <> Col
MESSAGE('Something is wrong, color is not returned correctly')
ELSE
MESSAGE('Got the correct color back!')
END
See also: