Add spiek for line width support in turtle
This commit is contained in:
@ -97,6 +97,9 @@ Turtle.prototype.update = function () {
|
||||
if (item.fill) {
|
||||
ctx.strokeStyle = item.fill;
|
||||
}
|
||||
if (item.width) {
|
||||
ctx.lineWidth = item.width;
|
||||
}
|
||||
|
||||
ctx.stroke();
|
||||
break;
|
||||
@ -112,6 +115,9 @@ Turtle.prototype.update = function () {
|
||||
ctx.strokeStyle = item.fill;
|
||||
ctx.fill();
|
||||
}
|
||||
if (item.width) {
|
||||
ctx.lineWidth = item.width;
|
||||
}
|
||||
ctx.stroke();
|
||||
break;
|
||||
case 'image':
|
||||
|
Reference in New Issue
Block a user