submission by SSample for (View the other submissions)
function setup(){
  var myCanvas = createCanvas(windowWidth,windowHeight); //you must keep this line unmodified
}

function draw() {
  var shape_x_y = [50, 100, 150, 200, 250, 300, 350, 400, 450]
  var rect_array = [50, 70, 90, 110, 130, 150, 170, 180]
  var x = 200
  var y = 200
  var red = color(255, 0, 0)
  var orange = color(255, 128, 0)
  var yellow = color(255, 255, 0)
  var lime = color(0, 255, 0)
  var blue = color(0, 0, 255)
  var purple = color(255, 0, 255)
  var white = color(255, 255, 255)

  fill(red)
  rect(shape_x_y[0], shape_x_y[0], 50, 50)
  fill(orange)
  rect(shape_x_y[1], shape_x_y[1], 50, 50)
  fill(yellow)
  rect(shape_x_y[2], shape_x_y[2], 50, 50)
  fill(lime)
  rect(shape_x_y[3], shape_x_y[3], 50, 50)
  fill(blue)
  rect(shape_x_y[4], shape_x_y[4], 50, 50)
  fill(purple)
  rect(shape_x_y[5], shape_x_y[5], 50, 50)  // arrays
  fill(red)
  rect(shape_x_y[6], shape_x_y[6], 50, 50)
  fill(orange)
  rect(shape_x_y[7], shape_x_y[7], 50, 50)

  fill(white)
  for(ellipse_x = 100; ellipse_x <= 700; ellipse_x += 25) {
    ellipse(ellipse_x, 400, 25, 25)
  }
  for(x = 0; x <= 10; x += 1) {
    rect(500, rect_array[x], 20, 20)  // for loops
  }
}