xxxxxxxxxx
30
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
}
function draw() {
fill ('black');
noStroke();
circle(mouseX,mouseY,2,25);
// cursorBall();
if (mouseIsPressed) {
r = random (0,255);
g = random (0,255);
b = random (0,255);
a = random (0,255);
noStroke();
fill (r,g,b,a);
circle(mouseX,mouseY,2);}
if (mouseIsPressed) {
d = random (0,50);
noStroke();
fill (r,g,b,a);
circle(mouseX,mouseY,d,25);}
}
// function cursorBall() {
// background(255);
// circle(mouseX, mouseY, 10);
// }