Function Block COLOR2HSV

The Function Block COLOR2HSV converts an RGB color to an HSV color.

Input #RGB

Expects a color as a string in hexadecimal format '#RRGGBB'.

Output Hue

The output corresponds to the angle of the color circle. This is output as a number between 0 and 359.

Output Saturation

The output indicates the saturation of the color. If the value is 0, then the input color is white, or at 100 the full color is output.

Output Value

The output indicates the value or brightness of the color. The value ranges between 0 and 100.

See Also