xxxxxxxxxx
26
let pattern;
let shape;
let img;
function preload() {
img = loadImage("0.jpg");
}
function setup() {
createCanvas(600, 600);
shape = createGraphics(width, height);
}
function draw() {
tint(255, 0, 0, 125);
image(img, 0, 0, width, height);
tint(255, 255);
shape.ellipse(random(width), random(height), 100, 100);
//image(shape, 0, 0);
img.mask(shape);
image(img, 0, 0, width, height);
}
function mousePressed() {}