I am trying to make trailing rectangles, this is what I have right now and it works all though I was wondering is there a simpler way to do this? If say I wanted to do this for 10 rectangles.

```
void ofApp::setup(){
x = 50;
y = 50;
x2 = 50;
x3 = 50;
xoff = 0.01;
targetx = ofGetWidth()-100;
}
void ofApp::draw(){
ofSetColor(150);
x = ofLerp(x, targetx, 0.009);
ofDrawRectangle(x, y, 100, 100);
ofSetColor(200);
x2 = ofLerp(x2, x, 0.05);
ofDrawRectangle(x2, y, 100, 100);
ofSetColor(255);
x3 = ofLerp(x3, x2, 0.05);
ofDrawRectangle(x3, y, 100, 100);
}
}
```