Note: This PRAction documentation is out-dated and is for an older (pre-GMS v2.3) version of PRAction. For the most up-to-date docs on the latest version of PRAction, please refer to this page as well as the documentation included in the PRAction package.

Documentation Topics
Function

PRActionEaseCubicInOut()

While any kind of animation can be created using the standard complement of PRAction functions without needing to deal directly with the easing functions, they have been made available for use and experimentation, should it be desired.

This function will return a value that lies within a range of numbers for the given completion percentage, using the Cubic In/Out easing equation. The completion percentage is determined by currentTime over duration.


Declaration

PRActionEaseCubicInOut(currentTime, startValue, deltaValue, duration, data1)

Parameters

currentTime

A number representing the current point in time. Can be in any unit of measure. Must be between 0 and duration.

startValue

The starting value of the number range in which the returned value will be calculated.

deltaValue

The ending value of the number range, less the startValue, in which the returned value will be calculated.

duration

The total duration of the animation. Must be in the same unit of measure as currentTime.

data1

Not used.

Return Value

The calculated result.