josedeschamps_JD-Beard_NewSchool_Processing_github_io/Week6/Homework/Week6HW/HWArray3/HWArray3.pde
float[] xPosArr = new float[5];
float[] yPosArr = new float[5];



void setup() {
  size(600,600);
  noStroke();
  
  
  for (int i = 0; i < xPosArr.length; i++) {
    xPosArr[i] = 0 + i * 120;
     for (int j = 0; j < yPosArr.length; j++) {
    yPosArr[j] = 0 + j * 120;
  }
  }
  
}


void draw() {
  background(#FFC3B9);
  
  for (int i = 0; i < xPosArr.length; i++) {
    xPosArr[i] += random(-i,i);
    for(int j = 0; j < yPosArr.length; j++) {
    yPosArr[j] += random(-j,j);
    fill(map(xPosArr[i], 10, height, 0, 255), 200,200);
    rect(xPosArr[i], xPosArr[j],50,50);
     rect(xPosArr[j], xPosArr[i],30,30);
    
  
 
  }
  }
}