void setup() { size(400, 400); smooth(); } void draw() { background(255); for (int y = 0; y < mouseY; y = y + 5) { line(0, y, width, y); } }