Skip to content

Commit 19aa6fe

Browse files
authored
Fix endShape() to Properly Close Paths and Prevent Shape Merging
1 parent 3be8ce4 commit 19aa6fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/p5.Renderer2D.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ class Renderer2D extends Renderer {
272272
this.drawingContext.stroke(visitor.path);
273273
}
274274
}
275+
this.clipPath.closePath();
275276
}
276277

277278
beginClip(options = {}) {

0 commit comments

Comments
 (0)