int pos = 0; void draw() { background(255); pos++; line(pos, 20, pos, 80); if(pos > width) { pos = 20; } delay(2); // Stops the program for 250 millisecond int pos = 10; pos++; line(pos, 20, pos, 2); if(pos > width) { pos = 100; } delay(100); // Stops the program for 250 milliseconds }