xxxxxxxxxx
18
let fruits;
function preload(){
fruits=loadImage("fruits.png")
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
image(fruits,mouseX,mouseY)
}
function mousePressed(){
fruits.resize(mouseX)
}