xxxxxxxxxx
23
function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
if (mouseIsPressed) {
brush(mouseX, mouseY);
}
}
function brush(X, Y) {
noFill();
stroke(244,223,255,X+2);
strokeWeight(X/255);
ellipse(X, Y, X-20,Y-20);
stroke(255,244,223, X+2);
strokeWeight(X/100)
ellipse(X, Y, X-100, Y-100);
}