P5JS – LA 1 – 1.3

This lesson we mostly practiced with rectangles and ellipses, but since we already did that in 1.1 this was boring and a practice exercise like the following was quickly done:

function setup() {
  createCanvas(400, 400);
  background(225);
//rectangle A//
rect(0, 0, 80, 80);
//ellipse A//
ellipse(40, 40, 80, 80);
//rectangle B//
rect(320, 0, 80, 80);
//ellipse B//
ellipse(360, 40, 80, 80);
//rectangle C//
rect(0, 320, 80, 80);
//ellipse C//
ellipse(40, 360, 80, 80);
//rectangle D//
rect(320, 320, 80, 80);
//ellipse D//
ellipse(360, 360, 80, 80);
}

As the assignment belonging to the pharagraph we had to make the robot in P5JS, as we already did that you can see mine in the post belonging to 1.1.