ph_huexytorgb PowerHome formula function
Description
Takes Philips Hue XY color values and
converts them to an RGB
color value
Syntax
ph_huexytorgb ( ad_x, ad_y )
Argument | Description |
ad_x | Double. A Philips Hue X color value (should be
a value between 0 and 1 inclusive) |
ad_y | Double. A Philips Hue Y color value (should be
a value between 0 and 1 inclusive) |
Return value
Long. Returns a standard
RGB color value
Usage
Use this function to convert Philips Hue XY
color values to standard RGB
color values
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_huexytorgb(0.4750,0.2683) -
Returns 11106302 which is the equivalent to
rgb(254,119,169)