Example 0

function setup() {
  createCanvas(400, 400);
}

function draw() {
	circle(50,50,40)
} 

Example 1

//this function runs one
function setup() {
  createCanvas(400, 400);
}

function draw() {
	fill(random(255), random(255), random(255));
  ellipse(width/2, height/2, 50, 50)
}

Example 2

let x = 0;

function setup() {
  createCanvas(500, 500)
  background(100);  
  frameRate(25);
}

function draw() {
  my_ellipse = ellipse(x, height/2, 20, 20);
  x = x + 1;
}

let x = 0;

function setup() { createCanvas(500, 500) background(100);

frameRate(25); }

function draw() { my_ellipse = ellipse(x, height/2, 20, 20); x = x + 1; }

Example 4

function setup() {
  createCanvas(400, 400);
  background(240)
}

function draw() {

  noLoop();
  noStroke();
  fill('red');
  let numCircles = 50;
  let r = (width)/numCircles;

  for (x = 0; x < numCircles; x++){
    ellipse(x*(r*2), height/2, r);
  }
}