Table of Contents

Method Rgb

Namespace
Yeelight
Assembly
YeelightClient.dll

Rgb(int, int, int, int)

Makes a scene that sets a colour and a brightness.

public static YeelightScene Rgb(int red, int green, int blue, int brightness)

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.

brightness int

The brightness, 1 to 100.

Returns

YeelightScene

The scene.

Exceptions

ArgumentOutOfRangeException

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

Rgb(Color, int)

Makes a scene that sets a colour and a brightness.

public static YeelightScene Rgb(Color color, int brightness)

Parameters

color Color

The colour. Its alpha is ignored.

brightness int

The brightness, 1 to 100.

Returns

YeelightScene

The scene.

Exceptions

ArgumentOutOfRangeException

brightness is out of the range that the protocol allows.