InterLAB-UC_NaturalSystems/paseosAleatorios/paseoAleatorio_1/paseoAleatorio_1.pde

import processing.pdf.*;

Walker[]w = new Walker [100];


void setup() {
  size(500, 500);
  beginRecord(PDF, "aleatorio_1.pdf");
  background(255);
  for (int i =0; i< w.length; i++) {
    w[i] = new Walker();
  }
}

void draw() {
  for (int i = 0; i< w.length; i++) {
    w[i].display(i*2, 0, 0);
    w[i].step();
  }
}

void keyPressed() {
  if (key == 'q') {
    endRecord();
    exit();
  }
}