Class: Circular

rune.tween.Circular()

The Circular class provides three easing functions that enable the implementation of smooth motion in Rune animations.

Constructor

new Circular()

Creates a new instance of Circular.
Source:

Methods

(static) easeIn(t, b, c, d) → {number}

Ease in.
Parameters:
Name Type Description
t number Specifies the current time, between 0 and duration inclusive.
b number Specifies the initial value of the animation property.
c number Specifies the total change in the animation property.
d number Specifies the duration of the motion.
Source:
Returns:
The value of the interpolated property at the specified time.
Type
number

(static) easeInOut(t, b, c, d) → {number}

Ease in and out.
Parameters:
Name Type Description
t number Specifies the current time, between 0 and duration inclusive.
b number Specifies the initial value of the animation property.
c number Specifies the total change in the animation property.
d number Specifies the duration of the motion.
Source:
Returns:
The value of the interpolated property at the specified time.
Type
number

(static) easeOut(t, b, c, d) → {number}

Ease out.
Parameters:
Name Type Description
t number Specifies the current time, between 0 and duration inclusive.
b number Specifies the initial value of the animation property.
c number Specifies the total change in the animation property.
d number Specifies the duration of the motion.
Source:
Returns:
The value of the interpolated property at the specified time.
Type
number