Module mfx.effects

Class ElasticInOutCurve

java.lang.Object
javafx.animation.Interpolator
io.github.palexdev.mfxeffects.animations.base.Curve
io.github.palexdev.mfxeffects.animations.motion.ElasticInOutCurve

public class ElasticInOutCurve extends Curve
An oscillating curve that grows and then shrinks in magnitude while overshooting its bounds.

Elastic In Out Example

The above example is built with a magnitude of 0.4.

  • Field Summary

    Fields inherited from class javafx.animation.Interpolator

    DISCRETE, EASE_BOTH, EASE_IN, EASE_OUT, LINEAR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ElasticInOutCurve(double period)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    curve(double t)
     

    Methods inherited from class io.github.palexdev.mfxeffects.animations.base.Curve

    flipped

    Methods inherited from class javafx.animation.Interpolator

    interpolate, interpolate, interpolate, interpolate, interpolate, SPLINE, TANGENT, TANGENT

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ElasticInOutCurve

      public ElasticInOutCurve()
    • ElasticInOutCurve

      public ElasticInOutCurve(double period)
  • Method Details

    • curve

      public double curve(double t)
      Specified by:
      curve in class Curve