Class ColorFlowStep
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
One step of a ColorFlow: a change of colour or colour temperature, or a pause, and how long it takes.
public sealed class ColorFlowStep
- Inheritance
-
ColorFlowStep
- Inherited Members
Remarks
Make a step with Rgb(int, int, int, TimeSpan, int?), Rgb(Color, TimeSpan, int?), ColorTemperature(int, TimeSpan, int?) or Sleep(TimeSpan).
Properties
- Brightness
Gets the brightness that the step changes to, or
nullwhen the step leaves the brightness as it is (and always for a sleep).
- Duration
Gets how long the step takes: the time that the light needs to change gradually, or the time that it sleeps.
- Mode
Gets what the step does.
- Value
Gets the colour as a number (Rgb) or the colour temperature in kelvin (ColorTemperature), and
0for a sleep.
Methods
- ColorTemperature(int, TimeSpan, int?)
Makes a step that changes the colour temperature.
- Rgb(Color, TimeSpan, int?)
Makes a step that changes the colour.
- Rgb(int, int, int, TimeSpan, int?)
Makes a step that changes the colour.
- Sleep(TimeSpan)
Makes a step that does nothing for a while.
- ToString()
Returns a string that represents the current object.