Skip to content

Commit bdfa0c9

Browse files
author
Lauren McCarthy
committed
adding example for image.resize
1 parent c6b37c7 commit bdfa0c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/p5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ var p5Image = function (require, core, filters) {
10231023
var tempCanvas = document.createElement('canvas');
10241024
tempCanvas.width = width;
10251025
tempCanvas.height = height;
1026-
tempCanvas.getContext('2d').drawImage(this.canvas, 0, 0, this.canvas.width, this.canvas.height, 0, 0, tempCanvas.width, tempCanvas.width);
1026+
tempCanvas.getContext('2d').drawImage(this.canvas, 0, 0, this.canvas.width, this.canvas.height, 0, 0, tempCanvas.width, tempCanvas.height);
10271027
this.canvas.width = this.width = width;
10281028
this.canvas.height = this.height = height;
10291029
this.drawingContext.drawImage(tempCanvas, 0, 0, width, height, 0, 0, width, height);

0 commit comments

Comments
 (0)