Code

size(300,300);
background(0);

smooth();
stroke(255);
int space=10;

for(int i=0; i<10; i=i+1){
  
  line(0,150,300,i*10);
}

0103 - For Loops I: Line Series

Statement:

Create a for structure in which the counting variable increments by 1 each time through the loop. Using this counting variable, create a simple pattern of 10 lines.

hide statement