mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Examples: update Circles.html to create a new path on every mouse down.
This commit is contained in:
parent
9487e48854
commit
a81f1eb698
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@
|
|||
path = new Path.Circle(event.downPoint, distance);
|
||||
path.strokeColor = 'black';
|
||||
path.fillColor = 'white';
|
||||
},
|
||||
|
||||
onMouseUp: function(event) {
|
||||
path = null;
|
||||
}
|
||||
});
|
||||
tool.document = doc;
|
||||
|
|
Loading…
Reference in a new issue