xxxxxxxxxx
26
//putting an image
let clown;
function preload(){
clown = loadImage('clown.jpg')
}
function setup() {
createCanvas(500, 500);
// imageMode(CENTER);
}
function draw() {
background(220);
image(clown,0,0)
// image(clown, width ,height);
clown.resize(width,height)
let c = clown.get(mouseX,mouseY);
image(c,200,200)
// let c = clown.get(mouseX,mouseY);
// fill(c)
square(mouseX,mouseY,20)
// function mousePressed(){
// clown.resize(mouseX,mouseY)}
}