xxxxxxxxxx
47
function setup() {
createCanvas(1000, 1000);
strokeWeight(0)
let r = random (0,255)
let g = random (0,255)
let b = random (0,255)
let col = color(r,g,b,)
background(col);
frameRate(100)
}
function draw()
{
if (mouseIsPressed) {
brush(mouseX, mouseY);
}
}
function brush(X, Y) {
push();
fill(0)
ellipse(X-20, Y-20, 60, 40);
pop();
push();
ellipse(X+20, Y+20, 60, 40);
pop();
push();
fill(100,12,56);
ellipse(X, Y, 60, 40);
pop();
}