mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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 = new Path.Circle(event.downPoint, distance);
|
||||||
path.strokeColor = 'black';
|
path.strokeColor = 'black';
|
||||||
path.fillColor = 'white';
|
path.fillColor = 'white';
|
||||||
|
},
|
||||||
|
|
||||||
|
onMouseUp: function(event) {
|
||||||
|
path = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
tool.document = doc;
|
tool.document = doc;
|
||||||
|
|
Loading…
Reference in a new issue