View source: R/hue_set_colour.R
hue_set_light_colour | R Documentation |
N.B. Colour accuracy may not be perfect. See the official documentation for details, and consider using custom parameters with hue_set_light_state()
if this function does not achieve what you expect. https://developers.meethue.com/develop/application-design-guidance/color-conversion-formulas-rgb-to-xy-and-back/
hue_set_light_colour(id, colour, transition_time = 0.4)
id |
If numeric, numeric id of light. If character, name of light. You can check id and names with |
colour |
A colour name as listed by |
transition_time |
Duration of the transition in seconds. Defaults to 0.4 seconds. |
if (interactive()) {
hue_set_light_colour(id = 11, colour = "blue")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.