"Morph" effect
lx_effect_morph(
period = 5,
duration = 10^10,
palette,
power_on = TRUE,
fast = FALSE,
selector = "all",
token = lx_get_token()
)
This controls how quickly the morph runs. It is measured in seconds. A lower number means the animation is faster
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.
array of strings (7 colors across the spectrum). You can control the colors in the animation by specifying a list of color specifiers. See lx_color_name
if TRUE (default), switch any selected device that is off to on before performing the effect.
Executes the query fast, without initial state checks and wait for no results. See https://api.developer.lifx.com/docs/set-state
'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with lx_selector
or written manually (see https://api.developer.lifx.com/docs/selectors
API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token
)
an 'httr' response object (see response
)
# NOT RUN {
lx_effect_morph(period = 2, palette = c("red", "blue"))
# }
Run the code above in your browser using DataLab