mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Fix Item#tweenFrom()
documentation example.
Example code was not matching example title.
This commit is contained in:
parent
266cf365f5
commit
f2b6e67bcb
1 changed files with 2 additions and 2 deletions
|
@ -4811,11 +4811,11 @@ new function() { // Injection scope for hit-test functions shared with project
|
|||
* @example {@paperscript height=100}
|
||||
* // Tween fillColor from red to the path's initial fillColor:
|
||||
* var path = new Path.Circle({
|
||||
* fillColor: 'red',
|
||||
* fillColor: 'blue',
|
||||
* radius: view.bounds.height * 0.4,
|
||||
* center: view.center
|
||||
* })
|
||||
* path.tweenFrom({ fillColor: 'blue' }, { duration: 1000 })
|
||||
* path.tweenFrom({ fillColor: 'red' }, { duration: 1000 })
|
||||
*/
|
||||
tweenFrom: function(state, options) {
|
||||
return this.tween(state, null, options);
|
||||
|
|
Loading…
Reference in a new issue