xxxxxxxxxx
17
let myImage;
function preload() {
myImage = loadImage('robot-dog.jpg');
}
function setup() {
createCanvas(myImage.width, myImage.height);
noStroke();
}
function draw(){
background(myImage);
let c = myImage.get(mouseX, mouseY);
fill(c);
circle(width/2, height/2, 50);
}