Index / 2016 / Q 08 Mission 01
400×400 · p5.js instance mode
Q_08_Mission_01.pde 21 lines
void setup() {
  size(400,400);
  background(0);
  for (int j = 0; j < 20; j++) { //repeats until 20 lines have been created
    VertLine(j*20);
    HoriLine(j*20); // <-- pretty crappy name
  }
  
}

void VertLine(int x) { //function to create a vertical line using one x coord
  stroke(random(255),random(255),random(255)); //i am random :)
  strokeWeight(3);
  line(x,0,x,400);
}

void HoriLine(int y) { //function to create a vertical line using one y coord
  stroke(random(255),random(255),random(255)); //random colors?
  strokeWeight(3);
  line(0,y,400,y);
}
read-only archive source from /2016/QUIZZES/Q-08 Processing 3/Q_08_Mission_01/Q_08_Mission_01.pde

Description

This page is generated from the Processing project folder at /2016/QUIZZES/Q-08 Processing 3/Q_08_Mission_01/Q_08_Mission_01.pde.

Archive

No companion assets were found in this sketch folder.