Interface Easing

All Superinterfaces:
EasingType, Wrapper

@NullMarked @AsOf("3.2.0") public interface Easing extends Wrapper, EasingType
Represents an easing function for a timeline.
Since:
3.2.0
  • Method Details

    • id

      @AsOf("3.2.0") String id()
      The identifier of this easing.
      Returns:
      the identifier of this easing
      Since:
      3.2.0
    • of

      @AsOf("3.2.0") static Easing of(String id)
      Gets an easing by its identifier.
      Parameters:
      id - the identifier of the easing
      Returns:
      the easing
      Since:
      3.2.0
    • of

      @AsOf("3.2.0") static Easing of(ResourceKey id)
      Gets an easing by its identifier.
      Parameters:
      id - the identifier of the easing
      Returns:
      the easing
      Since:
      3.2.0
    • cubicBezier

      @AsOf("3.2.0") static Easing cubicBezier(float x1, float y1, float x2, float y2)
      Creates a cubic bezier easing.
      Parameters:
      x1 - the x-coordinate of the first control point
      y1 - the y-coordinate of the first control point
      x2 - the x-coordinate of the second control point
      y2 - the y-coordinate of the second control point
      Returns:
      a cubic bezier easing
      Since:
      3.2.0
    • symmetricCubicBezier

      @AsOf("3.2.0") static Easing symmetricCubicBezier(float x1, float y1)
      Creates a symmetric cubic bezier easing.
      Parameters:
      x1 - the x-coordinate of the control point
      y1 - the y-coordinate of the control point
      Returns:
      a symmetric cubic bezier easing
      Since:
      3.2.0