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.
Description
Section titled “Description”IN curves start slowly, OUT curves end slowly, IN_OUT curves do both.
The catalog shows every curve.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
TweenEquation | of(String name) static | Returns the curve named name ("Linear.IN_OUT", "Quad.IN", "Elastic.IN_OUT"…), or null for an unknown name. |
Constants and fields
Section titled “Constants and fields”| Type | Name | Value | Summary |
|---|---|---|---|
LinearTweenEquation | LINEAR | LinearTweenEquation.IN_OUT | Constant speed. |
QuadTweenEquation | QUAD_IN | QuadTweenEquation.IN | Starts slowly, with a power of 2. |
QuadTweenEquation | QUAD_OUT | QuadTweenEquation.OUT | Ends slowly, with a power of 2. |
QuadTweenEquation | QUAD_IN_OUT | QuadTweenEquation.IN_OUT | Starts and ends slowly, with a power of 2. |
CubicTweenEquation | CUBIC_IN | CubicTweenEquation.IN | Starts slowly, with a power of 3. |
CubicTweenEquation | CUBIC_OUT | CubicTweenEquation.OUT | Ends slowly, with a power of 3. |
CubicTweenEquation | CUBIC_IN_OUT | CubicTweenEquation.IN_OUT | Starts and ends slowly, with a power of 3. |
QuartTweenEquation | QUART_IN | QuartTweenEquation.IN | Starts slowly, with a power of 4. |
QuartTweenEquation | QUART_OUT | QuartTweenEquation.OUT | Ends slowly, with a power of 4. |
QuartTweenEquation | QUART_IN_OUT | QuartTweenEquation.IN_OUT | Starts and ends slowly, with a power of 4. |
QuintTweenEquation | QUINT_IN | QuintTweenEquation.IN | Starts slowly, with a power of 5. |
QuintTweenEquation | QUINT_OUT | QuintTweenEquation.OUT | Ends slowly, with a power of 5. |
QuintTweenEquation | QUINT_IN_OUT | QuintTweenEquation.IN_OUT | Starts and ends slowly, with a power of 5. |
CircTweenEquation | CIRC_IN | CircTweenEquation.IN | Starts slowly, along a quarter circle. |
CircTweenEquation | CIRC_OUT | CircTweenEquation.OUT | Ends slowly, along a quarter circle. |
CircTweenEquation | CIRC_IN_OUT | CircTweenEquation.IN_OUT | Starts and ends slowly, along quarter circles. |
SineTweenEquation | SINE_IN | SineTweenEquation.IN | Starts slowly, along a sine. |
SineTweenEquation | SINE_OUT | SineTweenEquation.OUT | Ends slowly, along a sine. |
SineTweenEquation | SINE_IN_OUT | SineTweenEquation.IN_OUT | Starts and ends slowly, along a sine. |
ExpoTweenEquation | EXPO_IN | ExpoTweenEquation.IN | Starts very slowly, with an exponential. |
ExpoTweenEquation | EXPO_OUT | ExpoTweenEquation.OUT | Ends very slowly, with an exponential. |
ExpoTweenEquation | EXPO_IN_OUT | ExpoTweenEquation.IN_OUT | Starts and ends very slowly, with an exponential. |
BackTweenEquation | BACK_IN | BackTweenEquation.IN | Moves back a little before it starts. |
BackTweenEquation | BACK_OUT | BackTweenEquation.OUT | Goes past the end a little before it settles. |
BackTweenEquation | BACK_IN_OUT | BackTweenEquation.IN_OUT | Moves back a little at the start and goes past the end a little. |
BounceTweenEquation | BOUNCE_IN | BounceTweenEquation.IN | Bounces at the start. |
BounceTweenEquation | BOUNCE_OUT | BounceTweenEquation.OUT | Bounces at the end, like a ball that falls. |
BounceTweenEquation | BOUNCE_IN_OUT | BounceTweenEquation.IN_OUT | Bounces at the start and at the end. |
ElasticTweenEquation | ELASTIC_IN | ElasticTweenEquation.IN | Oscillates at the start, like a spring. |
ElasticTweenEquation | ELASTIC_OUT | ElasticTweenEquation.OUT | Oscillates at the end, like a spring. |
ElasticTweenEquation | ELASTIC_IN_OUT | ElasticTweenEquation.IN_OUT | Oscillates at the start and at the end. |
Method details
Section titled “Method details”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).
Constant and field details
Section titled “Constant and field details”LINEAR
Section titled “LINEAR”LinearTweenEquation LINEAR
Constant speed.
QUAD_IN
Section titled “QUAD_IN”QuadTweenEquation QUAD_IN
Starts slowly, with a power of 2.
QUAD_OUT
Section titled “QUAD_OUT”QuadTweenEquation QUAD_OUT
Ends slowly, with a power of 2.
QUAD_IN_OUT
Section titled “QUAD_IN_OUT”QuadTweenEquation QUAD_IN_OUT
Starts and ends slowly, with a power of 2.
CUBIC_IN
Section titled “CUBIC_IN”CubicTweenEquation CUBIC_IN
Starts slowly, with a power of 3.
CUBIC_OUT
Section titled “CUBIC_OUT”CubicTweenEquation CUBIC_OUT
Ends slowly, with a power of 3.
CUBIC_IN_OUT
Section titled “CUBIC_IN_OUT”CubicTweenEquation CUBIC_IN_OUT
Starts and ends slowly, with a power of 3.
QUART_IN
Section titled “QUART_IN”QuartTweenEquation QUART_IN
Starts slowly, with a power of 4.
QUART_OUT
Section titled “QUART_OUT”QuartTweenEquation QUART_OUT
Ends slowly, with a power of 4.
QUART_IN_OUT
Section titled “QUART_IN_OUT”QuartTweenEquation QUART_IN_OUT
Starts and ends slowly, with a power of 4.
QUINT_IN
Section titled “QUINT_IN”QuintTweenEquation QUINT_IN
Starts slowly, with a power of 5.
QUINT_OUT
Section titled “QUINT_OUT”QuintTweenEquation QUINT_OUT
Ends slowly, with a power of 5.
QUINT_IN_OUT
Section titled “QUINT_IN_OUT”QuintTweenEquation QUINT_IN_OUT
Starts and ends slowly, with a power of 5.
CIRC_IN
Section titled “CIRC_IN”CircTweenEquation CIRC_IN
Starts slowly, along a quarter circle.
CIRC_OUT
Section titled “CIRC_OUT”CircTweenEquation CIRC_OUT
Ends slowly, along a quarter circle.
CIRC_IN_OUT
Section titled “CIRC_IN_OUT”CircTweenEquation CIRC_IN_OUT
Starts and ends slowly, along quarter circles.
SINE_IN
Section titled “SINE_IN”SineTweenEquation SINE_IN
Starts slowly, along a sine.
SINE_OUT
Section titled “SINE_OUT”SineTweenEquation SINE_OUT
Ends slowly, along a sine.
SINE_IN_OUT
Section titled “SINE_IN_OUT”SineTweenEquation SINE_IN_OUT
Starts and ends slowly, along a sine.
EXPO_IN
Section titled “EXPO_IN”ExpoTweenEquation EXPO_IN
Starts very slowly, with an exponential.
EXPO_OUT
Section titled “EXPO_OUT”ExpoTweenEquation EXPO_OUT
Ends very slowly, with an exponential.
EXPO_IN_OUT
Section titled “EXPO_IN_OUT”ExpoTweenEquation EXPO_IN_OUT
Starts and ends very slowly, with an exponential.
BACK_IN
Section titled “BACK_IN”BackTweenEquation BACK_IN
Moves back a little before it starts.
BACK_OUT
Section titled “BACK_OUT”BackTweenEquation BACK_OUT
Goes past the end a little before it settles.
BACK_IN_OUT
Section titled “BACK_IN_OUT”BackTweenEquation BACK_IN_OUT
Moves back a little at the start and goes past the end a little.
BOUNCE_IN
Section titled “BOUNCE_IN”BounceTweenEquation BOUNCE_IN
Bounces at the start.
BOUNCE_OUT
Section titled “BOUNCE_OUT”BounceTweenEquation BOUNCE_OUT
Bounces at the end, like a ball that falls.
BOUNCE_IN_OUT
Section titled “BOUNCE_IN_OUT”BounceTweenEquation BOUNCE_IN_OUT
Bounces at the start and at the end.
ELASTIC_IN
Section titled “ELASTIC_IN”ElasticTweenEquation ELASTIC_IN
Oscillates at the start, like a spring.
ELASTIC_OUT
Section titled “ELASTIC_OUT”ElasticTweenEquation ELASTIC_OUT
Oscillates at the end, like a spring.
ELASTIC_IN_OUT
Section titled “ELASTIC_IN_OUT”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
