picking a color by name or hsbk
1 2 3 4 5 6 7 8 9 | lx_color_name(
hue = NULL,
saturation = NULL,
brightness = NULL,
kelvin = NULL,
color_name = NULL,
check = TRUE,
token = lx_get_token()
)
|
hue |
set the hue (0-255) |
saturation |
set the saturation (0-1) |
brightness |
set the brightness (0-1) |
kelvin |
set the color temperature. limits depend on the specific lamp; limits are likely in the range of 2500-9000 |
color_name |
a color name (i.e. "red"), hexadecimal color code (i.e. "#FF0000") or output from lx_color() (in lifx api format (see https://api.developer.lifx.com/docs/colors). If this parameter is used, other parameters may be ignored. |
check |
if FALSE does not call the API to check if the color is valid |
token |
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.