Little stuck on a concept

example

but still a long way to go

hit any key to redraw




// -----------------------------------------------------

void setup() {
  size (1400, 800);
  background(0);
}

void draw() {
  // clear & prepare canvas 
  background(0); 

  stroke(255);
  myLine( 13 );
  myLine( 83 );
  myLine( 223 );
  myLine( 293 );
  myLine( 323 );

  noLoop();
}

void keyPressed() {
  redraw();
}

void myLine(float angle) {
  // float angle=50; 
  float angle2=radians(angle);

  float xCenter=cos(angle2) * random(11, 29) + width/2;
  float yCenter=sin(angle2) * random(11, 29) + height/2;

  // radius 1 
  float r1 = random(37, 290); 
  float x=cos(angle2) * r1 + xCenter;
  float y=sin(angle2) * r1  + yCenter;

  line(xCenter, yCenter, 
    x, y);

  pushMatrix();
  translate(x, y); 
  float angle3 = give90orminus90() ; 
  rotate(radians(angle+angle3)); 
  float r2=random(37, 290); 
  line(0, 0, r2, 0);

  translate(r2, 0); 
  rotate(radians(- angle3 ));
  line(0, 0, 155, 0);

  translate(155, 0); 
  rotate(radians(give90orminus90()  ));
  line(0, 0, 35, 0);

  popMatrix();
} 

float give90orminus90() {
  if (random(100)<50)
    return 90;
  else return -90;
}