breathe: breathe

Description Usage Arguments Examples

View source: R/lifx-cloud.R

Description

Display a breathe effect

Usage

1
2
3
breathe(color, from_color = current_color(selector)[[1]], period = 10,
  cycles = 2, persist = FALSE, peak = 0.5, selector = "all",
  power_on = TRUE)

Arguments

color

a string describing the desired color; see examples.

from_color

Same syntax as color, defaults to current color (of first bulb in selection)

period

time in seconds for the cycle to take place

cycles

number of cycles to perform

persist

should the color persist after the effect? default is FALSE (returns to original color)

peak

when in the cycle should the color be at it's maximum intensity?

selector

a string in format '[type]:[value]', where type can be 'all', 'id', 'label', 'group', 'group_id', 'location', 'location_id', 'scene_id', and value is what you want to target. The default is 'all', which needs no value argument.

power_on

should the light be powered on if it is off? (FALSE just leaves light off)

Examples

1
2
3
4
## Not run: 
breathe("purple", "blue")

## End(Not run)

cboettig/lifxr documentation built on May 12, 2017, 12:07 a.m.