mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Round stroke caps (#798)
This commit is contained in:
parent
1a8178808a
commit
5ae3ade49b
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ class LineMode extends React.Component {
|
||||||
// If not near other path, start a new path
|
// If not near other path, start a new path
|
||||||
if (!this.path) {
|
if (!this.path) {
|
||||||
this.path = new paper.Path();
|
this.path = new paper.Path();
|
||||||
|
this.path.strokeCap = 'round';
|
||||||
stylePath(this.path, this.props.colorState.strokeColor, this.props.colorState.strokeWidth);
|
stylePath(this.path, this.props.colorState.strokeColor, this.props.colorState.strokeWidth);
|
||||||
|
|
||||||
this.path.add(event.point);
|
this.path.add(event.point);
|
||||||
|
|
Loading…
Reference in a new issue