Randomizing a Line


size(500, 100);
int step = 10;

float lastX = -999;
float lastY = -999;
float y= 50;

int borderY = 20;

for (int x=20; x-999) {
    line(x, y, lastX, lastY);
  }
  lastX = x;
  lastY = y;
}

size(500, 100);
int step = 10;

float lastX = -999;
float lastY = -999;
float y= 50;

int borderY = 20;

for (int x=20; x-999) {
line(x, y, lastX, lastY);
}
lastX = x;
lastY = y;
}


Leave a Reply

Your email address will not be published. Required fields are marked *