Function Block COLOR2UINT

The Function Block COLOR2UINT splits the components of a color value into its primary colors.

Input #RGBA

Expects a color as a string in hexadecimal format '#RRGGBB' or '#RRGGBBAA', if the alpha channel is used.

Output R

The color Red as an integer between 0 and 255.

Output G

The color Green as an integer between 0 and 255.

Output B

The color Blue as an integer between 0 and 255.

Output A

The alpha channel as an integer between 0 and 255. If the alpha channel is not used, this value is 255.

See Also