diff --git a/src/core/p5.Renderer2D.js b/src/core/p5.Renderer2D.js index 163ee01b5a..5125e4000d 100644 --- a/src/core/p5.Renderer2D.js +++ b/src/core/p5.Renderer2D.js @@ -264,6 +264,7 @@ class Renderer2D extends Renderer { shape.accept(visitor); if (this._clipping) { this.clipPath.addPath(visitor.path); + this.clipPath.closePath(); } else { if (this.states.fillColor) { this.drawingContext.fill(visitor.path);