Class: SystemProgressionTable

SystemProgressionTable

A progression table

new SystemProgressionTable (id, json)

Name Type Description
id number optional The ID
json Object optional Json object describing the progression table
Properties:
Name Type Description
id number The ID
initialValue SystemValue The initial value
finalValue SystemValue The final value
equation number The equation kind
table Object The table progression

Methods

SystemProgressionTable.create (i, f, equation)SystemProgressionTable static

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:
Type Description
SystemProgressionTable

read (json)

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:
Type Description
number

easingLinear (x)number

The easing linear function
Name Type Description
x number
Returns:
Type Description
number

easingQuadraticIn (x)number

The easing quadratic in function
Name Type Description
x number
Returns:
Type Description
number

easingQuadraticOut (x)number

The easing quadratic out function
Name Type Description
x number
Returns:
Type Description
number

easingCubicIn (x)number

The easing cubic in function
Name Type Description
x number
Returns:
Type Description
number

easingCubicOut (x)number

The easing cubic out function
Name Type Description
x number
Returns:
Type Description
number

easingQuarticIn (x)number

The easing quartic in function
Name Type Description
x number
Returns:
Type Description
number

easingQuarticOut (x)number

The easing quartic out function
Name Type Description
x number
Returns:
Type Description
number

easingQuinticIn (x)number

The easing quintic in function
Name Type Description
x number
Returns:
Type Description
number

easingQuinticOut (x)number

The easing quintic out function
Name Type Description
x number
Returns:
Type Description
number