xxxxxxxxxx
function setup() {
createCanvas(400, 400);
// Let's make our canvas light blue
background(255,0,0);
}
// Runs repeatedly
function draw() {
frameRate(random(30, 60))
// Draw a circle centered on the current mouse
// location, with a diameter of 20
color(0);
stroke(1);
line(200, 200, mouseX, mouseY);
fill(255, 45);
noStroke();
circle(mouseX, mouseY, random(150));
}
function mousePressed() {
background('red');
}