obadonke_processing/Noc/01/Noc01_06_Ex1_6/Noc01_06_Ex1_6.pde
// Nature of Code
// Exercise 1.6 Monte Carlo step size walker.
// Using vectors even though they haven't been introduced yet.

Walker wExp, wLinear, wSimple;

int expColor = 0;
int linearColor = 220;
int simpleColor = 60;

int dotSaturation = 80;
int dotBrightness = 80;
int dotSize = 3;
int maxStep = 8;

void setup() {
  colorMode(HSB,360,100,100);
  size(800, 800);
  wExp = new Walker(WalkMode.Monte_Exponential,expColor);
  wLinear = new Walker(WalkMode.Monte_Linear,linearColor);
  wSimple = new Walker(WalkMode.Simple,simpleColor);
  
  background(0,0,100);
  fill(0,0,0);
  textSize(10);
  text("Random walker Ex 1.6 with Monte Carlo",0,10);
  PVector textPos = new PVector(2*width/3,2*height/3);
  fill(expColor,dotSaturation,dotBrightness);
  text("Exponential",textPos.x,textPos.y-20);
  fill(linearColor,dotSaturation,dotBrightness);
  text("Linear",textPos.x,textPos.y-10);
  fill(simpleColor,dotSaturation,dotBrightness);
  text("Simple",textPos.x,textPos.y);
}

void draw() {
  wExp.step();
  wExp.display();
  wLinear.step();
  wLinear.display();
  wSimple.step();
  wSimple.display();
}