xxxxxxxxxx
39
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(6,7,209)
ellipse(X-1, Y-1, 10, 10);
pop();
push();
ellipse(X+10, Y+10, 10, 10);
pop();
}