mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Add Path#closed example.
This commit is contained in:
parent
8bb8baa199
commit
083099a919
1 changed files with 10 additions and 0 deletions
|
@ -166,6 +166,16 @@ var Path = this.Path = PathItem.extend({
|
|||
*
|
||||
* @type Boolean
|
||||
* @bean
|
||||
*
|
||||
* @example
|
||||
* var myPath = new Path();
|
||||
* myPath.strokeColor = 'black';
|
||||
* myPath.add(new Point(40, 90));
|
||||
* myPath.add(new Point(90, 40));
|
||||
* myPath.add(new Point(140, 90));
|
||||
*
|
||||
* // Close the path:
|
||||
* myPath.closed = true;
|
||||
*/
|
||||
getClosed: function() {
|
||||
return this._closed;
|
||||
|
|
Loading…
Reference in a new issue