ISMA303


Randomizing a Line

by Haig. Average Reading Time: less than a minute.

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;
}

No comments on ‘Randomizing a Line’

Leave a Reply