RGBComponent is a built-in scripting function that gets the level of a color component (red, green, or blue) in a specified color.
|Function||Group||Execution||Windows||Embedded||Thin Client||Mobile Access|
- The decimal code for a 24-bit RGB color, which can be any integer value between 0 and 16777215. (This color model is also known as “Truecolor” or “millions of colors.”)
- The color component for which you want to get the level: 0 is red, 1 is green, and 2 is blue.
This function returns an integer value between 0 or 255, which represents the level of the color component in the specified color.
For a list of frequently used RGB color codes and their equivalent “plain English” names, see Color Interface.
RGBComponent( 13434828, 0 )
RGBComponent( TagCode, TagComponent )