-
-
Create a new system progression table
Name |
Type |
Description |
i |
SystemValue
|
The initial value |
f |
SystemValue
|
The final value |
equation |
number
|
The equation kind |
Returns:
-
-
Read the JSON associated to the progression table
Name |
Type |
Description |
json |
Object
|
Json object describing the progression table |
-
initialize
(i, f, equation)
-
Initialize this progression table
Name |
Type |
Description |
i |
SystemValue
|
The initial value |
f |
SystemValue
|
The final value |
equation |
number
|
The equation kind |
-
getProgressionAt
(current, f, decimal)number
-
Get the progression at a current value
Name |
Type |
Default |
Description |
current |
number
|
|
The current value |
f |
number
|
|
The final value |
decimal |
boolean
|
false
|
optional
Indicate if the return should have
decimal or not |
Returns:
-
-
The easing linear function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuadraticIn
(x)number
-
The easing quadratic in function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuadraticOut
(x)number
-
The easing quadratic out function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
-
The easing cubic in function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
-
The easing cubic out function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuarticIn
(x)number
-
The easing quartic in function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuarticOut
(x)number
-
The easing quartic out function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuinticIn
(x)number
-
The easing quintic in function
Name |
Type |
Description |
x |
number
|
|
Returns:
-
easingQuinticOut
(x)number
-
The easing quintic out function
Name |
Type |
Description |
x |
number
|
|
Returns: