unit3 1.4

exercise #1

function setup() {
  createCanvas(600, 120);
}

function draw() {
  background(220);

  for (var x = 0; x < width; x = x + 25) {
    noStroke();

    fill(x/3, 0, 0);

    ellipse(x, 50, 20, 20);
  }
}

exercise#2

 background(220);

  for (x = 100; x < width; x = x + 100) {
    fill(50, 200, 200);

    ellipse(x, 60, 50, 50);

    fill(0);

    ellipse(x + 7, 55, 7, 5);

    ellipse(x - 7, 55, 7, 5);

    ellipse(x, 70, 7, x / 30);
  }
}