Constructor ColorFlow
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
ColorFlow(IEnumerable<ColorFlowStep>, int, ColorFlowAction)
Initializes a new instance of the ColorFlow class.
public ColorFlow(IEnumerable<ColorFlowStep> steps, int count = 0, ColorFlowAction action = ColorFlowAction.RecoverState)
Parameters
stepsIEnumerable<ColorFlowStep>The steps of the flow, at least one.
countintThe number of visible state changes before the flow ends, or
0for a flow that never ends.actionColorFlowActionWhat the light does when the flow has ended.
Exceptions
- ArgumentNullException
stepsisnull, or has a step that is.- ArgumentException
stepsis empty.- ArgumentOutOfRangeException
countis negative, oractionis not a value of ColorFlowAction.