Code:

  1. function setup()
  2. {
  3.   createCanvas(800, 800)
  4.   background(255)
  5. }
  6. function draw()
  7. {
      for(var i = 0; i < 500; i++)
  8.   {
  9.     stroke(random(50, 200), 0, 0, random(255))
  10.     strokeWeight(random(10))
  11.     line(width/4, height/4, random(width), random(height))
  12.  }
  13.   noLoop()
  14. }