Argument | Description |
al_rgb | Long. The RGB color value you wish to convert. Ex: rgb(255,120,170) |
as_xy | String. Specifies whether to return the X or the Y value. Valid values are "X" or "Y" |
as_gamut | String. Specifies the gamut to be used for the conversion. See Usage below |
ad_rx | Double. The gamut X value to use for Red |
ad_ry | Double. The gamut Y value to use for Red |
ad_gx | Double. The gamut X value to use for Green |
ad_gy | Double. The gamut Y value to use for Green |
ad_bx | Double. The gamut X value to use for Blue |
ad_by | Double. The gamut Y value to use for Blue |
Valid values for as_gamut are:
If you specify one of the gamut values above (a, b, c, or full), you do NOT need to specify ANY of the ad_rx, ad_ry, ad_gx, ad_gy, ad_bx, or ad_by values (set all of these values to 0). If you wish to specify your own gamut ranges, set the as_gamut parameter to blank ("") and then specify the six gamut values in ad_rx thru ad_by. Gamut values should be a positive number between 0 and 1 inclusive.
See the Philips Hue API for more details on color conversions and the actual gamut values that are used