int y = 0; void setup() { size(150, 150); background(255); } void draw() { background(255); line(0, y, width, y); y++; if (y > height) { y = 0; } }