bohmbox_mySketches/blanket/blanket.pde
// A generative system in 24 lines of code

void setup(){
  size(2000,2000,P3D);
  background(#5B2374);
  stroke(0,50);
  fill(255,200);
  float xstart = random(10);
  float ynoise = random(10);
  translate(width/2,height/2,0);
  for (float y = -(height/8); 
      y <= (height/8);
      y +=3){
    ynoise +=0.02;
    float xnoise = xstart;

    for (float x = -(width/8); 
          x <= (width/8);
          x +=3){
      xnoise +=0.02;
      drawPoint(x,y,noise(xnoise,ynoise));
    }
  }
  save("blanket.png");
}

void drawPoint(float x, float y,float noiseFactor){
  pushMatrix();
  translate(x*noiseFactor*4, y*noiseFactor*4,-y);
  float edgeSize = noiseFactor*26;
  ellipse(0,0,edgeSize,edgeSize);
  popMatrix();
}
