Method ColorTemperature
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
ColorTemperature(int, TimeSpan, int?)
Makes a step that changes the colour temperature.
public static ColorFlowStep ColorTemperature(int kelvin, TimeSpan duration, int? brightness = null)
Parameters
kelvinintThe colour temperature, 1700 to 6500.
durationTimeSpanHow long the change takes, at least MinFlowStep.
brightnessint?The brightness to change to, 1 to 100, or
nullto leave it as it is.
Returns
- ColorFlowStep
The step.
Exceptions
- ArgumentOutOfRangeException
An argument is out of the range that the protocol allows.