xxxxxxxxxx
21
// Setting up your sketch only happens 1 time.
function setup() {
createCanvas(400, 400);
}
// Draw is called 60x a second
function draw() {
// Draw the background
background(220);
// Turn on stroke
stroke(0);
// Draw a rectangle
rect(150, 300, 50, 80);
// Turn off stroke
noStroke();
// Draw an ellipse
ellipse(200, 200, 10, 10);
// Turn off the loop
//noLoop();
}