xxxxxxxxxx
21
let wallpaper;
function preload(){
wallpaper = loadImage("wallpaper.jpg")
}
function setup() {
createCanvas(660, 480);
}
function draw() {
background(220);
image(wallpaper, 0, 0);
let c = wallpaper.get(mouseX, mouseY);
fill(c);
square(mouseX, mouseY, 50);
}