strotter Project 03

sketch.js
sketch
I became really interested in the way the stripes lay over one another depending on the syntax I used.

function setup() {
  createCanvas(800,800);
}

function draw() {
    background(51)
    for(var i = 0;i < 4; i++){
        var px = 0;
        var py = 100 + (200 * i);
        //Stripes
        fill(220,20,60)
        rect(px,py,width,100);
        fill(255);
        rect(py,px,100,height);
        rect(px,py+25,width,50);
        fill(51);
        rect(py+25,px,50,height);
    }
    
}