submission by Wizard1011 for drawing with color and variables (View the other submissions)
function setup(){
  var myCanvas = createCanvas(windowWidth,windowHeight); //you must keep this line unmodified
 background(0,100,225)
}
var xpos= 20 //Position of the squares on the x coordinate


function draw() {
strokeWeight(5)
fill(225,0,0)
stroke(200,120,0)
rect(xpos,20,80,80) //The red rectangle
stroke(200,190,0)
fill(200,120,0)
rect(xpos + 80,20,80,80) // The orange rectangle
stroke(0,225,0)
fill(200,190,0)
rect(xpos + 160,20,80,80) // The yellow rectangle
stroke(0,0,225)
fill(0,225,0)
rect(xpos + 240,20,80,80) // The green rectangle






}