xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(100);
if (mouseX < windowWidth/3)
{
ellipse(windowWidth/2, windowHeight/2, 600, 600);
}
else if (mouseX < windowWidth*2/3)
{
rectMode(CENTER);
rect (windowWidth/2, windowHeight/2, 600, 600);
}
else
{
ellipse(windowWidth/2, windowHeight/2, 600, 600);
}
}