/// <summary> /// /// </summary> /// <param name="light"></param> /// <param name="rgb"></param> /// <param name="timeSpan"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public static void SetColor(this StreamingLight light, RGBColor rgb, TimeSpan timeSpan = default(TimeSpan), CancellationToken cancellationToken = default(CancellationToken)) { light.SetState(rgb, null, timeSpan, cancellationToken); }
/// <summary> /// Brightness between 0 and 1 /// </summary> /// <param name="light"></param> /// <param name="brightness">between 0 and 1</param> /// <param name="timeSpan"></param> /// <param name="cancellationToken"></param> public static void SetBrightness(this StreamingLight light, double brightness, TimeSpan timeSpan = default(TimeSpan), CancellationToken cancellationToken = default(CancellationToken)) { light.SetState(null, brightness, timeSpan, cancellationToken); }