예제 #1
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////
        #region NON-PUBLIC PROCEDURES
        /////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Initializes the easing functions.
        /// </summary>
        private void InitializeEasingFunctions()
        {
            var quarticEase = new QuarticEase();

            EasingFunctions.Add(new BackEase());
            EasingFunctions.Add(new BounceEase());
            EasingFunctions.Add(new CircleEase());
            EasingFunctions.Add(new CubicEase());
            EasingFunctions.Add(new ElasticEase());
            EasingFunctions.Add(new ExponentialEase());
            EasingFunctions.Add(new PowerEase());
            EasingFunctions.Add(new QuadraticEase());
            EasingFunctions.Add(quarticEase);
            EasingFunctions.Add(new QuinticEase());
            EasingFunctions.Add(new SineEase());

            foreach (EasingFunctionBase easingFunction in EasingFunctions)
            {
                easingFunction.EasingMode = EasingMode.EaseOut;
            }

            SelectedEasingFunction = quarticEase;
        }