Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: EasingInterpolator

[21:14] static extends: object

Helper for FXGL's EasingInterpolator interface (com.almasb.fxgl.animation.EasingInterpolator), which the Interpolators enum implements. Aussom users normally pick a curve through the existing fxgl.Interpolators wrapper (Interpolators.easeOut("EXPONENTIAL") etc.); this helper is here for the rare case where a custom easing curve needs to be supplied as an AussomJavaObject. To author a custom interpolator from Aussom, build a Java functional-interface proxy via aji.closure on com.almasb.fxgl.animation.EasingInterpolator and pass it wherever an Interpolator is accepted.

Methods

  • easeIn (object EasingInterpObj)

    Returns the EASE_IN curve from the supplied EasingInterpolator AJO. Equivalent to calling INSTANCE.EASE_IN() on the interpolator.

    • @p EasingInterpObj is an AussomJavaObject around an EasingInterpolator.
    • @r An AussomJavaObject around an Interpolator.
  • easeOut (object EasingInterpObj)

    Returns the EASE_OUT curve from the supplied EasingInterpolator AJO.

    • @r An AussomJavaObject around an Interpolator.
  • easeInOut (object EasingInterpObj)

    Returns the EASE_IN_OUT curve from the supplied EasingInterpolator AJO.

    • @r An AussomJavaObject around an Interpolator.