Table of Contents

Method Rgb

Namespace
Yeelight
Assembly
YeelightClient.dll

Rgb(int, int, int, TimeSpan, int?)

Makes a step that changes the colour.

public static ColorFlowStep Rgb(int red, int green, int blue, TimeSpan duration, int? brightness = null)

Parameters

red int

The red part of the colour, 0 to 255.

green int

The green part of the colour, 0 to 255.

blue int

The blue part of the colour, 0 to 255.

duration TimeSpan

How long the change takes, at least MinFlowStep.

brightness int?

The brightness to change to, 1 to 100, or null to leave it as it is.

Returns

ColorFlowStep

The step.

Exceptions

ArgumentOutOfRangeException

An argument is out of the range that the protocol allows.

Rgb(Color, TimeSpan, int?)

Makes a step that changes the colour.

public static ColorFlowStep Rgb(Color color, TimeSpan duration, int? brightness = null)

Parameters

color Color

The colour. Its alpha is ignored.

duration TimeSpan

How long the change takes, at least MinFlowStep.

brightness int?

The brightness to change to, 1 to 100, or null to leave it as it is.

Returns

ColorFlowStep

The step.

Exceptions

ArgumentOutOfRangeException

An argument is out of the range that the protocol allows.