mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-26 21:59:46 -04:00
Documentation edits.
This commit is contained in:
parent
5e05f38df0
commit
a96b272f7a
5 changed files with 83 additions and 17 deletions
src/path
|
@ -23,8 +23,8 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
|||
* @constructs CompoundPath
|
||||
* @param {Array} [paths] the paths to place within the compound path.
|
||||
*
|
||||
* @example
|
||||
* // Create a donut shaped compound path:
|
||||
* @example {@paperscript}
|
||||
* // Create a circle shaped path with a hole in it:
|
||||
* var circle = new Path.Circle(new Point(50, 50), 30);
|
||||
* var innerCircle = new Path.Circle(new Point(50, 50), 10);
|
||||
* var compoundPath = new CompoundPath([circle, innerCircle]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue