Пример #1
0
 /// <summary>
 /// Add this light to the request
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="colorProfile">The color profile.</param>
 internal void AddToRequest(ExternalInterface.SetCubeLightsRequest request, ColorProfile colorProfile)
 {
     request.OnColor.Add(colorProfile.AugmentColor(OnColor).ToRobotColor());
     request.OffColor.Add(colorProfile.AugmentColor(OffColor).ToRobotColor());
     request.OnPeriodMs.Add(OnPeriodMs);
     request.OffPeriodMs.Add(OffPeriodMs);
     request.TransitionOnPeriodMs.Add(TransitionOnPeriodMs);
     request.TransitionOffPeriodMs.Add(TransitionOffPeriodMs);
     request.Offset.Add(0);
 }