Random walker

sketch.pde

Walker tim;

color black = #000000;
color white = #f1f1f1;
color primary = #ff0000;

void setup() {
  tim = new Walker();
  size(800, 600, P2D);
  background(white);
}

void draw() {

  fill(black);
  noStroke();
  translate(width/2, height/2);
  for (int i=0; i < 100; i ++) {
    tim.walk();
    tim.display();
  }
}

walker.pde

class Walker {
  float x, y;
  void walker() {
    x=0;
    y=0;
  }

  void walk() {
    x+=random(-2, 2);
    y+=random(-2, 2);
  }

  void display() {
    ellipse(x, y, random(2), random(2));
  }
}