RGBColor

Returns the number of the color defined by the RGB (Red, Green, Blue) codes.

Function Group Execution Windows Embedded Thin Client
RGBColor Graphic Synchronous Supported Supported Supported

Syntax

RGBColor(numRed,numGreen,numBlue)
numRed
Red code from the RGB code.
numGreen
Green code from the RGB code.
numBlue
Blue code from the RGB code.

Returned value

This function returns the number of the color defined by the RGB (Red, Green, Blue) codes.

Examples

Tag Name Expression
TagColor RGBColor(51,153,102) // This function returns the value 13434828, which is the color code for Sea Green.
TagColor RGBColor(TagRed,TagGreen,TagBlue) // This function returns the color code of the RGB values set in the tags TagRed, TagGreen and TagBlue, respectively.
Tip: See the list of RGB Codes and Color values for the most used colors in the Color Interface section.