Function Block XY2COLOR

The Function Block XY2COLOR resolves an extended XY color into an RGB color.

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

Input XY

The input defines the position of the color. It is specified as a string with two concatenated positions as floating-point numbers between 0 and 1. The string is defined using a semicolon separator. For example: '0.3171;0.3366'.

Input DIM

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