public function breatheLights(
        $selector = 'all',
        $color = 'purple',
        $from_color = null,
        $period = 1.0,
        $cycles = 1.0,
        $persist = 'false',
        $power_on = 'true',
        $peak = 0.5
    ) {
        $request = new Request('POST', 'lights/' . $selector . '/effects/breathe');
        $response = $this->sendRequest($request, [
            'query' => [
                'color' => $color,
                'from_color' => $from_color,
                'period' => $period,
                'cycles' => $cycles,
                'persist' => $persist,
                'power_on' => $power_on,
                'peak' => $peak,
            ]
        ]);

        return $response->getBody();
    }
public function breatheLights(
        $selector = 'all',
        $color = 'purple',
        $from_color = null,
        $period = 1.0,
        $cycles = 1.0,
        $persist = 'false',
        $power_on = 'true',
        $peak = 0.5
    ) {
        $request = new Request('POST', 'lights/' . $selector . '/effects/breathe');
        $response = $this->sendRequest($request, [
            'query' => [
                'color' => $color,
                'from_color' => $from_color,
                'period' => $period,
                'cycles' => $cycles,
                'persist' => $persist,
                'power_on' => $power_on,
                'peak' => $peak,
            ]
        ]);

        return $response->getBody();
    }
public function breatheLights ( $ selector = 'all' , $ color = 'purple' , $ from_color = null , $ period = 1.0 , $ cycles = 1.0 , $ persist = 'false' , $ power_on = 'true' , $ peak = 0.5 ) { $ request = new Request ( 'POST' , 'lights/' . $ selector . '/effects/breathe' ) ; $ response = $ this -> sendRequest ( $ request , [ 'query' => [ 'color' => $ color , 'from_color' => $ from_color , 'period' => $ period , 'cycles' => $ cycles , 'persist' => $ persist , 'power_on' => $ power_on , 'peak' => $ peak , ] ] ) ; return $ response -> getBody ( ) ; }
Performs a breathe effect by slowly fading between the given colors.
If `from_color` is omitted then the current color is used in its place.

@param string $selector Selector used to filter lights. Defaults to `all`.
@param string $color Color the lights should be set to. Defaults to `purple`.
@param string|null $from_color (Optional) From color of the waveform. Defaults to `null`.
@param float $period (Optional) Period of the waveform in seconds. Defaults to `1.0`.
@param float $cycles (Optional) Number of times to repeat, cycle counts. Defaults to `1.0`.
@param bool $persist (Optional) Whether to keep state at the end of the effect. Defaults to `false`.
@param bool $power_on (Optional) Whether to turn light on first. Defaults to `true`.
@param float $peak (Optional) Defines where in a period the target color is at its maximum. Defaults to `0.5`. Minimum `0.0`, maximum `1.0`.
@return \Psr\Http\Message\StreamInterface
Performs a breathe effect by slowly fading between the given colors . If from_color is omitted then the current color is used in its place .