Class: TweenValue

rune.tween.TweenValue(name, startopt, endopt)

The TweenValue class represents a name-value pair used by Tween objects.

Constructor

new TweenValue(name, startopt, endopt)

Creates a new instance of TweenValue.
Parameters:
Name Type Attributes Description
name string Name of the property.
start number <optional>
The initial value of the property.
end number <optional>
The final value of the property.
Source:

Members

(readonly) delta :number

Delta value of the start and end value.
Type:
  • number
Source:

end :number

The final value of the property (after interpolation).
Type:
  • number
Default Value:
  • 0
Source:

name :string

Name of the property.
Type:
  • string
Default Value:
  • ""
Source:

start :number

The initial value of the property (before interpolation).
Type:
  • number
Default Value:
  • 0
Source:

Methods

dispose() → {undefined}

Free up allocated memory.
Source:
Returns:
Type
undefined

toString() → {string}

Returns a string representation of the TweenValue object.
Source:
Returns:
Type
string