Broken TV

I made some code that used for loops to draw 500 randomly colored lines across the screen, then I made it refresh 30 times a seccond. Win. Look at the bottom for some code.

Here’s the code:

void setup(){
  size(500,500);
}

void draw(){
  for(int i = 0; i<=500; i++){
     stroke(random(0,255),random(0,255),random(0,255));
     line(i,500,i,0);
  }
}

Leave us a reply