xxxxxxxxxx
21
let fruits;
function preload()
{
fruits= loadImage("fruits.png");
}
function setup() {
createCanvas(500, 500);
}
function draw() {
background(220);
image(fruits,0,0);
}
function mousePressed(){
fruits.resize(200,0)
}