xxxxxxxxxx
20
//This sets up our environment
// The two slashes are comments (//)
// comments are ignored by the programming language
function setup() {
createCanvas(640, 480);
}
//This loops over and over again
function draw() {
background(220);
//c = color(255,0,0)
if (mouseIsPressed) {
fill(0);
//fill (c)
} else {
fill(255);
}
ellipse(mouseX, mouseY, 80, 80);
//rect(50, 50, 10, 10)
}