Unit 3 1.3

function setup() {
  createCanvas(600, 600);
}
function draw() {
  background(220);
  x = width;

  for (y = 0; y <= height; y = y + 40) {
    fill(`red`);
    ellipse(y, y, 20, 20);
  }
  for (y = 0; y <= height; y = y + 40) {
    fill(`blue`);
    ellipse(x, y, 20, 20);
    x = x - 40;
  }
  for (y = 0; y <= height; y = y + 40) {
    fill(`yellow`);
    ellipse(300, y, 20, 20);
  }
  for (x = 0; x <= width; x = x + 40) {
    fill(`green`);
    ellipse(x, 300, 20, 20);
  }
}