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
redintThe red part of the colour, 0 to 255.
greenintThe green part of the colour, 0 to 255.
blueintThe blue part of the colour, 0 to 255.
brightnessintThe 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
Returns
- YeelightScene
The scene.
Exceptions
- ArgumentOutOfRangeException
brightnessis out of the range that the protocol allows.