Interface Easing


  • public interface Easing
    Special easing animations for animations.

    Predefined easings copied from https://easings.net

    
     Circle circle = new Circle(100, 100, 50);
     circle.animate().add(Animation.moveTo(300, 300, 1000)
                     .ease(Easing.easeInBack()));
     

    • Method Detail

      • linear

        static Easing linear()
        Linear easing: A.K.A no easing.
        Returns:
        an Easing object representing this easing.
      • easeIn

        static Easing easeIn​(double n)
        easeIn: Start out slow then accelerate up
        Parameters:
        n - the degree
        Returns:
        an Easing object representing this easing.
      • easeOut

        static Easing easeOut​(double n)
        easeOut: Start out fast then Slow down
        Parameters:
        n - the degree
        Returns:
        an Easing object representing this easing.
      • easeInOut

        static Easing easeInOut​(double n)
        easeInOut: Accelerate up then slow down
        Parameters:
        n - the degree
        Returns:
        an Easing object representing this easing.
      • easeInSine

        static Easing easeInSine()
      • easeOutSine

        static Easing easeOutSine()
      • easeInOutSine

        static Easing easeInOutSine()
      • easeInQuad

        static Easing easeInQuad()
      • easeOutQuad

        static Easing easeOutQuad()
      • easeInOutQuad

        static Easing easeInOutQuad()
      • easeInCubic

        static Easing easeInCubic()
      • easeOutCubic

        static Easing easeOutCubic()
      • easeInOutCubic

        static Easing easeInOutCubic()
      • easeInQuart

        static Easing easeInQuart()
      • easeOutQuart

        static Easing easeOutQuart()
      • easeInOutQuart

        static Easing easeInOutQuart()
      • easeInQuint

        static Easing easeInQuint()
      • easeOutQuint

        static Easing easeOutQuint()
      • easeInOutQuint

        static Easing easeInOutQuint()
      • easeInExpo

        static Easing easeInExpo()
      • easeOutExpo

        static Easing easeOutExpo()
      • easeInOutExpo

        static Easing easeInOutExpo()
      • easeInCirc

        static Easing easeInCirc()
      • easeOutCirc

        static Easing easeOutCirc()
      • easeInOutCirc

        static Easing easeInOutCirc()
      • easeInBack

        static Easing easeInBack()
      • easeOutBack

        static Easing easeOutBack()
      • easeInOutBack

        static Easing easeInOutBack()
      • easeInElastic

        static Easing easeInElastic()
      • easeOutElastic

        static Easing easeOutElastic()
      • easeInOutElastic

        static Easing easeInOutElastic()
      • easeInBounce

        static Easing easeInBounce()
      • easeOutBounce

        static Easing easeOutBounce()
      • easeInOutBounce

        static Easing easeInOutBounce()
      • ease

        double ease​(double t)