xxxxxxxxxx
31
var lightBulb = false;
function setup()
{
createCanvas(400, 400);
background(0);
}
function draw()
{
}
function mousePressed()
{
if (lightBulb === true)
{
lightBulb = false;
// background(255,0,0);
// fill(255,255,0);
// ellipse(width / 2, height / 2,100);
background(0);
}
else
{
lightBulb = true
background(255,0,0);
fill(255,255,0);
ellipse(width / 2, height / 2,100);
}
}