lx_effect_morph: "Morph" effect

Description Usage Arguments Value Examples

View source: R/effects.R

Description

"Morph" effect

Usage

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()
)

Arguments

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 lx_color_name

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 lx_selector or written manually (see https://api.developer.lifx.com/docs/selectors

token

API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token)

Value

an 'httr' response object (see response)

Examples

1
2
3
4
## Not run: 
lx_effect_morph(period = 2, palette = c("red", "blue"))

## End(Not run)

lifx documentation built on July 1, 2020, 6:08 p.m.