Add spiek for line width support in turtle

This commit is contained in:
Sebastian Serth
2020-10-28 23:50:13 +01:00
parent 2c77071b93
commit c19f8b9abe

View File

@ -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':