// For Loop Example void setup() { size(400,400); stroke(255,0,0); // I like red.. strokeWeight(5); fill(0,0,255); // I like blue.. } void draw() { background(128); /* // The Same while loop from the previous example int x = 0; // Step 1 while (x < width) // Step 2 { line(x,0,x,height); // Draw a line the entire height of the window and at the x point x = x + 10; // Step 3 } */ // Do all steps at once in a "for" loop // Read this as: for x equals 0, while x is less than width, increase x by 10 for (int x = 0; x < width; x = x + 10) { // Does the exact same thing as the while loop above but more commonly used this way line(x,0,x,height); } }