Skip to content

Commit db1e8e1

Browse files
author
Walter Bender
committed
don't fill hollow lines
1 parent 49f60c9 commit db1e8e1

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

js/turtle.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ function Turtle (name, turtles, drum) {
195195
this.closeSVG();
196196

197197
ctx.stroke();
198-
if (!this.fillState) {
199-
ctx.closePath();
200-
}
198+
ctx.closePath();
201199
// restore stroke.
202200
this.stroke = savedStroke;
203201
ctx.lineWidth = this.stroke;
@@ -361,9 +359,7 @@ function Turtle (name, turtles, drum) {
361359
this.closeSVG();
362360

363361
ctx.stroke();
364-
if (!this.fillState) {
365-
ctx.closePath();
366-
}
362+
ctx.closePath();
367363
// restore stroke.
368364
this.stroke = savedStroke;
369365
ctx.lineWidth = this.stroke;

0 commit comments

Comments
 (0)