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