float i = 200; void draw() { background(255, 0, 255); i = i - 1; if (i < 0) { i = height; } rect(i, 40, 20, 20); }