AnimationKit.Curve
This class describes a cubic bézier curve which controls the timing of animation tasks. The values are identical to css easing animations, meaning you can use an online generator to experiment and generate your own curves.
Constructors
P1 As Xojo.Core.Point, P2 As Xojo.Core.Point
Creates a new curve with points P1 and P2. P0 is always {0, 0}, and P3 is always {1, 1}.
P1X As Single, P1Y As Single, P2X As Single, P2Y As Single
Alternate constructor which uses 4 singles instead of 2 Xojo.Core.Point objects.
Methods
Function Evaluate (Time As Double, StartValue As Double, EndValue As Double) As Double
Determine the value between StartValue and EndValue given a Time between 0 and 1.
Function Reverse () As AnimationKit.Curve
Returns a new curve whose with inverted control points.
Shared Methods
Shared Function CreateEaseIn () As AnimationKit.Curve
Returns a new curve using the EaseIn preset.
Shared Function CreateEaseInOut () As AnimationKit.Curve
Returns a new curve using the EaseInOut preset.
Shared Function CreateEaseOut () As AnimationKit.Curve
Returns a new curve using the EaseOut preset.
Shared Function CreateFromPreset(Preset As AnimationKit.Curve.Presets) As AnimationKit.Curve
Returns a new curve using the provided preset.
Shared Function CreateLinear () As AnimationKit.Curve
Returns a new curve using the Linear preset.
Enumerations
Presets { Linear = 0, EaseIn, EaseInBack, EaseInCirc, EaseInCubic, EaseInExpo, EaseInQuad, EaseInQuart, EaseInQuint, EaseInSine, EaseOut, EaseOutBack, EaseOutCirc, EaseOutCubic, EaseOutExpo, EaseOutQuad, EaseOutQuart, EaseOutQuint, EaseOutSine, EaseInOut, EaseInOutBack, EaseInOutCirc, EaseInOutCubic, EaseInOutExpo, EaseInOutQuad, EaseInOutQuart, EaseInOutQuint, EaseInOutSine }
See Also
AnimationKit.MoveTask, AnimationKit.ScrollTask, AnimationKit.ValueTask