public static IIntent CreateIntent(Color color, double intensity, TimeSpan duration) { LightingValue lightingValue = new LightingValue(color, intensity); IIntent intent = new LightingIntent(lightingValue, lightingValue, duration); return(intent); }
public static IIntent CreateIntent(Color startColor, Color endColor, double startIntensity, double endIntensity, TimeSpan duration) { var startValue = new LightingValue(startColor, startIntensity); var endValue = new LightingValue(endColor, endIntensity); IIntent intent = new LightingIntent(startValue, endValue, duration); return(intent); }