lx_effect_breathe: "Breathe" effect

Description Usage Arguments Value Examples

View source: R/effects.R

Description

"Breathe" effect

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
lx_effect_breathe(
  color,
  from_color = NULL,
  period = 1,
  cycles = 1,
  persist = FALSE,
  power_on = TRUE,
  peak = 0.5,
  selector = "all",
  token = lx_get_token()
)

Arguments

color

color The color to use for the breathe effect. use lx_color() as input

from_color

The color to start the effect from. If this parameter is omitted then the color the bulb is currently set to is used instead.

period

The time in seconds for one cycle of the effect.

cycles

The number of times to repeat the effect.

persist

boolean; If FALSE set the light back to its previous value when effect ends, if true leave the last effect color.

power_on

If FALSE, does not turn light on if it is off

peak

Defines where in a period the target color is at its maximum. Minimum 0.0, maximum 1.0.

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_breathe(color = "red",from_color = "blue",period = 3,cycles = 5,power_on = TRUE)

## End(Not run)

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