xxxxxxxxxx
21
let fruits;
function preload() {
fruits = loadImage("fruits.png");
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
image(fruits, 0,0);
// image(fruits, mouseX - 100, mouseY-100, 200,200);
}
function mousePressed()
{
fruits.resize(mouseX, mouseY)
}