Skip to content

Commit 336cb2b

Browse files
author
Lauren McCarthy
committed
fixed bug with loadPixels capture, now scaling properly
1 parent 7d4a6a9 commit 336cb2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/addons/p5.dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ var p5DOM = (function(){
870870
this.canvas.height = this.height;
871871
this.drawingContext = this.canvas.getContext('2d');
872872
}
873-
this.drawingContext.drawImage(this.elt, 0, 0);
873+
this.drawingContext.drawImage(this.elt, 0, 0, this.width, this.height);
874874
p5.prototype.loadPixels.call(this);
875875
}
876876
return this;

0 commit comments

Comments
 (0)