static float TweenEasing.EaseLinear(float t, float d)
static float TweenEasing.EaseInSine(float t, float b, float c, float d)
static float TweenEasing.EaseOutSine(float t, float b, float c, float d)
static float TweenEasing.EaseInOutSine(float t, float b, float c, float d)
static float TweenEasing.EaseInQuad(float t, float b, float c, float d)
static float TweenEasing.EaseOutQuad(float t, float b, float c, float d)
static float TweenEasing.EaseInOutQuad(float t, float b, float c, float d)
static float TweenEasing.EaseInPower(float t, float b, float c, float d, float power)
static float TweenEasing.EaseOutPower(float t, float b, float c, float d, float power)
static float TweenEasing.EaseInOutPower(float t, float b, float c, float d, float power)
static float TweenEasing.EaseInExpo(float t, float b, float c, float d)
static float TweenEasing.EaseOutExpo(float t, float b, float c, float d)
static float TweenEasing.EaseInOutExpo(float t, float b, float c, float d)
static float TweenEasing.EaseInCirc(float t, float b, float c, float d)
static float TweenEasing.EaseOutCirc(float t, float b, float c, float d)
static float TweenEasing.EaseInOutCirc(float t, float b, float c, float d)
static float TweenEasing.EaseInBack(float t, float b, float c, float d)
static float TweenEasing.EaseOutBack(float t, float b, float c, float d)
static float TweenEasing.EaseInOutBack(float t, float b, float c, float d)
static float TweenEasing.EaseInElastic(float t, float b, float c, float d)
static float TweenEasing.EaseOutElastic(float t, float b, float c, float d)
static float TweenEasing.EaseInOutElastic(float t, float b, float c, float d)
static float TweenEasing.EaseInBounce(float t, float b, float c, float d)
static float TweenEasing.EaseOutBounce(float t, float b, float c, float d)
static float TweenEasing.EaseInOutBounce(float t, float b, float c, float d)

These are the equations used by the tween module to calculate all the easings. These are only conventiently available for advanced users who want to use these equations in other part of the games. For normal Tween activities, it is not required to use these at all.

You can see the result of each easing equation at easings.net. You can also find more information about how to use the t, b, c, and d parameters here.

GetAmount

static float TweenEasing.Value(float elapsed, float duration, TweenEasingType easingType)

Returns the value at elapsed over duration based on the TweenEasingType.

float elapsed = 0;
float duration = 100.0;
while (elapsed < duration) {
    gIconbar.Transparency = FloatToInt(TweenEasing.GetAmount(elapsed, duration, eEaseInSineTween), eRoundNearest);
    elapsed += 1.0;
    Wait(1);
}