0

Straight line EasingFunction in WPF application

I am working in WPF application and new to animation. I need to animate images in straight direction with ease effect. Which type of EasingFunction can I use? Now I am using CircleEase function but not moving in straight line. please help.

Sachin123
  • 251
  • 5
  • 18

1 Answers1

0

You have many ease function: QuadraticEase, CubicEase, QuarticEase, QuinticEase, PowerEase, BackEase, BounceEase, CircleEase, ElasticEase, ExponentialEase, SineEase.

Otherwise, you can write your own ease function. You create a class that implements IEasingFunction

For example:

public class LinearEase : IEasingFunction
{
   public double Ease(double normalizedTime)
   {
      return normalizedTime;
   }
}
Daniel
  • 9,312
  • 3
  • 48
  • 48