|
Previous Top Next |
Prototype: | (Byte pRed, Byte pGreen, Byte pBlue),Long |
pRed | The Red value |
pGreen | The Green value |
pBlue | The Blue value |
Returns | Returns Clarion color value. |
This method takes a RGB value split into Red, Green and Blue and combines it into a regular Clarion color value.
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: