generateData(frameRate) → {array}
This will generate an array populated with the tweened object values from start to end.
It works by running the tween simulation at the given frame rate based on the values set-up in Tween.to and Tween.from.
Just one play through of the tween data is returned, including yoyo if set.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
frameRate | number | <optional> | 60 | The speed in frames per second that the data should be generated at. The higher the value, the larger the array it creates. |
Returns
array -
An array of tweened values.
- Source code: tween/TweenData.js (Line 411)
Please login to continue.