// drawing n lines, from some inner point to all sides, of equal steps along perimeter // parameters: int n = 20; // n lines to be drawn int sw = 1; // initial stroke weight = line width int s = 400; // size of square canvas int x0, y0; // internal point to be connected void setup() { size (s, s); stroke(255); // lines in white x0 = int(random(0, s)); y0= int(random(0, s)); smooth(); // to render lines smooth background(0); } void draw() { // try to comment out the following line //background(0); strokeWeight(sw); translate(x0, y0); for (int j=0; j