mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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}
|
* @example {@paperscript height=100}
|
||||||
* // Tween fillColor from red to the path's initial fillColor:
|
* // Tween fillColor from red to the path's initial fillColor:
|
||||||
* var path = new Path.Circle({
|
* var path = new Path.Circle({
|
||||||
* fillColor: 'red',
|
* fillColor: 'blue',
|
||||||
* radius: view.bounds.height * 0.4,
|
* radius: view.bounds.height * 0.4,
|
||||||
* center: view.center
|
* center: view.center
|
||||||
* })
|
* })
|
||||||
* path.tweenFrom({ fillColor: 'blue' }, { duration: 1000 })
|
* path.tweenFrom({ fillColor: 'red' }, { duration: 1000 })
|
||||||
*/
|
*/
|
||||||
tweenFrom: function(state, options) {
|
tweenFrom: function(state, options) {
|
||||||
return this.tween(state, null, options);
|
return this.tween(state, null, options);
|
||||||
|
|
Loading…
Reference in a new issue