The code:

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