コード例 #1
0
ファイル: IntentBuilder.cs プロジェクト: starry-au/vixen
        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);
        }
コード例 #2
0
ファイル: IntentBuilder.cs プロジェクト: starry-au/vixen
        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);
        }