Skip to content

Commit 79a7360

Browse files
authored
Update pixels.js
1 parent 44cf277 commit 79a7360

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/image/pixels.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ p5.prototype.filter = function(...args) {
614614
// dest coords
615615
-this.width/2, -this.height/2, this.width, this.height
616616
);
617-
617+
//clearing the main canvas
618+
this._renderer.clear();
618619
// filter it with shaders
619620
this.filterGraphicsLayer.filter(operation, value);
620621

0 commit comments

Comments
 (0)