Function Block HUE2COLOR

The Function Block HUE2COLOR converts an extended HSV color to an RGB color.

Note: This Function Block is tailored for the Philips Hue System, therefore the input is limited to 254.

Input Hue

The input defines the angle of the color circle. It is specified as a number between 0 and 65'535. The value may exceed 65'535. The circle will then continue to be calculated.

Input Saturation

The input specifies the saturation of the color. If the value is 0, the input color is white, or at 254 the full color is output.

Input Value

The input specifies the value or brightness of the color. The value ranges between 0 and 254.

Output #RGB

Returns the calculated color as a string in the format '#RRGGBB'.

Output R

Returns the calculated red color as a number between 0 and 255.

Output G

Returns the calculated green color as a number between 0 and 255.

Output B

Returns the calculated blue color as a number between 0 and 255.

See Also