xxxxxxxxxx
let myImage;
function preload() {
myImage = loadImage("https://images.unsplash.com/photo-1604227878600-00157ecb7c74?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800&q=80")
}
function setup() {
createCanvas(myImage.width, myImage.height);
background(100);
}
function draw() {
for (let i = 0; i < 100; i++) {
const x = random(-100, 100);
const y = random(-100, 100);
fill(myImage.get(mouseX+x, mouseY));
noStroke();
circle(mouseX+x, mouseY, 50);
}
}