Returns the red component of an RGB color.
RGBRed(RGB(128, 38, 15)) // Returns 128
Syntax
<Result> = RGBRed(<RGB color>)
<Result>: Integer
Red component of RGB color (included between 0 and 255).
<RGB color>: Integer
Color (24 bits). This color is the result of the following formula:Color = 65536 * Blue Component + 256 * Green Component + Red Component.
Remarks
- RGB returns the identifier of the color described from its Red, Green and Blue components.
- RGBBlue returns the blue component of an RGB color. RGBGreen returns the green component of an RGB color.