We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ecc0a9 commit c6b37c7Copy full SHA for c6b37c7
src/objects/p5.Image.js
@@ -206,6 +206,22 @@ define(function (require) {
206
* @method resize
207
* @param {Number} width the resized image width
208
* @param {Number} height the resized image height
209
+ * @example
210
+ * <div><code>
211
+ * var img;
212
+ *
213
+ * function setup() {
214
+ * img = loadImage("assets/rockies.jpg");
215
+ * }
216
+
217
+ * function draw() {
218
+ * image(img, 0, 0);
219
220
221
+ * function mousePressed() {
222
+ * img.resize(100, 200);
223
224
+ * </code></div>
225
*/
226
p5.Image.prototype.resize = function(width, height){
227
0 commit comments