
The Function Block COLOR2HUE converts an RGB color to a high-resolution HSV color.
Note: This Function Block is tuned for the Philips Hue System, therefore the output is limited to 254.
Expects a color as a string in hex format '#RRGGBB'.
The output corresponds to the angle of the color circle. This is output as a number between 0 and 65'535.
The output indicates the saturation of the color. If the value is 0, then the input color is white or at 254 the full color is output.
The output indicates the value or brightness of the color. The value ranges between 0 and 254.