Class AnimationCurve
java.lang.Object
dev.prozilla.pine.common.property.animated.AnimationCurve
Determines how an animation progresses over time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnimationDirection
static final EasingFunction
final AnimationDirection
float
final EasingFunction
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationCurve
(float duration) Creates a linear animation with a given duration.AnimationCurve
(float duration, EasingFunction easingFunction) Creates an animation with a given duration.AnimationCurve
(float duration, EasingFunction easingFunction, AnimationDirection direction) Creates an animation with a given duration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(AnimationCurve animationCurve) boolean
float
evaluate
(float time) Evaluates this curve at a given time.static AnimationCurve
toString()
-
Field Details
-
duration
public float duration -
easingFunction
-
direction
-
DEFAULT_EASING_FUNCTION
-
DEFAULT_DIRECTION
-
-
Constructor Details
-
AnimationCurve
public AnimationCurve(float duration) Creates a linear animation with a given duration.- Parameters:
duration
- Duration of the animation
-
AnimationCurve
Creates an animation with a given duration.- Parameters:
duration
- Duration of the animation
-
AnimationCurve
Creates an animation with a given duration.- Parameters:
duration
- Duration of the animation
-
-
Method Details