xxxxxxxxxx
//Define variable
var ellipseColor;
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
ellipseColor = color(random(255), random(255), random(255));//variable values
}
function draw() {
fill (ellipseColor);
ellipse(mouseX, mouseY, 20, 20);
}
function mouseClicked()
{
ellipseColor = color(random(255), random(255), random(255));
}