Example #1
0
        public static IIntent CreateDiscreteIntent(Color color, double intensity, TimeSpan duration)
        {
            DiscreteValue discreteValue = new DiscreteValue(color, intensity);
            IIntent       intent        = new DiscreteLightingIntent(discreteValue, discreteValue, duration);

            return(intent);
        }
Example #2
0
        public static IIntent CreateDiscreteIntent(Color color, double startIntensity, double endIntensity, TimeSpan duration)
        {
            var     startingValue = new DiscreteValue(color, startIntensity);
            var     endValue      = new DiscreteValue(color, endIntensity);
            IIntent intent        = new DiscreteLightingIntent(startingValue, endValue, duration);

            return(intent);
        }