Description Usage Arguments Value Examples
"Morph" effect
1 2 3 4 5 6 7 8 9 | lx_effect_morph(
period = 5,
duration = 10^10,
palette,
power_on = TRUE,
fast = FALSE,
selector = "all",
token = lx_get_token()
)
|
period |
This controls how quickly the morph runs. It is measured in seconds. A lower number means the animation is faster |
duration |
How long the animation lasts for in seconds. Not specifying a duration makes the animation "never" stop (10^100 cycles). Specifying 0 makes the animation stop. Note that there is a known bug where the tile remains in the animation once it has completed if duration is nonzero. |
palette |
array of strings (7 colors across the spectrum). You can control the colors in the animation by specifying a list of color specifiers. See |
power_on |
if TRUE (default), switch any selected device that is off to on before performing the effect. |
fast |
Executes the query fast, without initial state checks and wait for no results. See https://api.developer.lifx.com/docs/set-state |
selector |
'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with |
token |
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see |
an 'httr' response object (see response
)
1 2 3 4 | ## Not run:
lx_effect_morph(period = 2, palette = c("red", "blue"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.