Code

size(200,200);
background(193,25,25);

smooth();
strokeWeight(2);
for (int i=1; i<=10; i++){
  line(3*i,30*i, 45*i,70/i);
}

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