Skip to content

TweenEquations

final class TweenEquations
Package: dev.joid.lib.animation.tween · Module: core · Source: TweenEquations.java

Every easing curve of JOID as a constant, and the lookup of a curve by its name.

IN curves start slowly, OUT curves end slowly, IN_OUT curves do both. The catalog shows every curve.

ReturnsSignatureSummary
TweenEquationof(String name) staticReturns the curve named name ("Linear.IN_OUT", "Quad.IN", "Elastic.IN_OUT"…), or null for an unknown name.
TypeNameValueSummary
LinearTweenEquationLINEARLinearTweenEquation.IN_OUTConstant speed.
QuadTweenEquationQUAD_INQuadTweenEquation.INStarts slowly, with a power of 2.
QuadTweenEquationQUAD_OUTQuadTweenEquation.OUTEnds slowly, with a power of 2.
QuadTweenEquationQUAD_IN_OUTQuadTweenEquation.IN_OUTStarts and ends slowly, with a power of 2.
CubicTweenEquationCUBIC_INCubicTweenEquation.INStarts slowly, with a power of 3.
CubicTweenEquationCUBIC_OUTCubicTweenEquation.OUTEnds slowly, with a power of 3.
CubicTweenEquationCUBIC_IN_OUTCubicTweenEquation.IN_OUTStarts and ends slowly, with a power of 3.
QuartTweenEquationQUART_INQuartTweenEquation.INStarts slowly, with a power of 4.
QuartTweenEquationQUART_OUTQuartTweenEquation.OUTEnds slowly, with a power of 4.
QuartTweenEquationQUART_IN_OUTQuartTweenEquation.IN_OUTStarts and ends slowly, with a power of 4.
QuintTweenEquationQUINT_INQuintTweenEquation.INStarts slowly, with a power of 5.
QuintTweenEquationQUINT_OUTQuintTweenEquation.OUTEnds slowly, with a power of 5.
QuintTweenEquationQUINT_IN_OUTQuintTweenEquation.IN_OUTStarts and ends slowly, with a power of 5.
CircTweenEquationCIRC_INCircTweenEquation.INStarts slowly, along a quarter circle.
CircTweenEquationCIRC_OUTCircTweenEquation.OUTEnds slowly, along a quarter circle.
CircTweenEquationCIRC_IN_OUTCircTweenEquation.IN_OUTStarts and ends slowly, along quarter circles.
SineTweenEquationSINE_INSineTweenEquation.INStarts slowly, along a sine.
SineTweenEquationSINE_OUTSineTweenEquation.OUTEnds slowly, along a sine.
SineTweenEquationSINE_IN_OUTSineTweenEquation.IN_OUTStarts and ends slowly, along a sine.
ExpoTweenEquationEXPO_INExpoTweenEquation.INStarts very slowly, with an exponential.
ExpoTweenEquationEXPO_OUTExpoTweenEquation.OUTEnds very slowly, with an exponential.
ExpoTweenEquationEXPO_IN_OUTExpoTweenEquation.IN_OUTStarts and ends very slowly, with an exponential.
BackTweenEquationBACK_INBackTweenEquation.INMoves back a little before it starts.
BackTweenEquationBACK_OUTBackTweenEquation.OUTGoes past the end a little before it settles.
BackTweenEquationBACK_IN_OUTBackTweenEquation.IN_OUTMoves back a little at the start and goes past the end a little.
BounceTweenEquationBOUNCE_INBounceTweenEquation.INBounces at the start.
BounceTweenEquationBOUNCE_OUTBounceTweenEquation.OUTBounces at the end, like a ball that falls.
BounceTweenEquationBOUNCE_IN_OUTBounceTweenEquation.IN_OUTBounces at the start and at the end.
ElasticTweenEquationELASTIC_INElasticTweenEquation.INOscillates at the start, like a spring.
ElasticTweenEquationELASTIC_OUTElasticTweenEquation.OUTOscillates at the end, like a spring.
ElasticTweenEquationELASTIC_IN_OUTElasticTweenEquation.IN_OUTOscillates at the start and at the end.

TweenEquation of(String name) static

Returns the curve named name ("Linear.IN_OUT", "Quad.IN", "Elastic.IN_OUT"…), or null for an unknown name. It also reads the names of tuned curves that toString() gives, such as "Back.OUT(2.5)" or "Elastic.IN(0.3, 2.0)" (period, then amplitude).

LinearTweenEquation LINEAR

Constant speed.

QuadTweenEquation QUAD_IN

Starts slowly, with a power of 2.

QuadTweenEquation QUAD_OUT

Ends slowly, with a power of 2.

QuadTweenEquation QUAD_IN_OUT

Starts and ends slowly, with a power of 2.

CubicTweenEquation CUBIC_IN

Starts slowly, with a power of 3.

CubicTweenEquation CUBIC_OUT

Ends slowly, with a power of 3.

CubicTweenEquation CUBIC_IN_OUT

Starts and ends slowly, with a power of 3.

QuartTweenEquation QUART_IN

Starts slowly, with a power of 4.

QuartTweenEquation QUART_OUT

Ends slowly, with a power of 4.

QuartTweenEquation QUART_IN_OUT

Starts and ends slowly, with a power of 4.

QuintTweenEquation QUINT_IN

Starts slowly, with a power of 5.

QuintTweenEquation QUINT_OUT

Ends slowly, with a power of 5.

QuintTweenEquation QUINT_IN_OUT

Starts and ends slowly, with a power of 5.

CircTweenEquation CIRC_IN

Starts slowly, along a quarter circle.

CircTweenEquation CIRC_OUT

Ends slowly, along a quarter circle.

CircTweenEquation CIRC_IN_OUT

Starts and ends slowly, along quarter circles.

SineTweenEquation SINE_IN

Starts slowly, along a sine.

SineTweenEquation SINE_OUT

Ends slowly, along a sine.

SineTweenEquation SINE_IN_OUT

Starts and ends slowly, along a sine.

ExpoTweenEquation EXPO_IN

Starts very slowly, with an exponential.

ExpoTweenEquation EXPO_OUT

Ends very slowly, with an exponential.

ExpoTweenEquation EXPO_IN_OUT

Starts and ends very slowly, with an exponential.

BackTweenEquation BACK_IN

Moves back a little before it starts.

BackTweenEquation BACK_OUT

Goes past the end a little before it settles.

BackTweenEquation BACK_IN_OUT

Moves back a little at the start and goes past the end a little.

BounceTweenEquation BOUNCE_IN

Bounces at the start.

BounceTweenEquation BOUNCE_OUT

Bounces at the end, like a ball that falls.

BounceTweenEquation BOUNCE_IN_OUT

Bounces at the start and at the end.

ElasticTweenEquation ELASTIC_IN

Oscillates at the start, like a spring.

ElasticTweenEquation ELASTIC_OUT

Oscillates at the end, like a spring.

ElasticTweenEquation ELASTIC_IN_OUT

Oscillates at the start and at the end.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page