void testApp::setup(){
int i;
ofBackground(10, 10, 30);
ofEnableAlphaBlending();
ofSetLineWidth(2);
ofEnableSmoothing();
ofSetCircleResolution(64);
for(i=0; i < 1000; i++){
start_x[i] = ofGetWidth() - i;
start_y[i] = i + 1;
end_x[i] = ofGetWidth() - i;
end_y[i] = i + 1;
color_r[i] = ofRandom(125, 255);
color_g[i] = ofRandom(0, 255);
color_b[i] = ofRandom(0, 255);
alpha_a[i] = ofRandom(0, 125);
circle_r[i] = i * 4;
}
}
//--------------------------------------------------------------
void testApp::update(){
}
//--------------------------------------------------------------
void testApp::draw(){
int i;
for(i=0; i<1000; i++){
ofLine(0, start_y[i],end_x[i], 0);
ofSetColor(color_r[i], color_g[i], color_b[i], alpha_a[i]);
ofLine(ofGetWidth(), start_y[i],end_x[i], ofGetHeight());
ofSetColor(color_r[i], color_g[i], color_b[i], alpha_a[i]);
}
for (i=0; i<100; i++) {
ofCircle(ofGetWidth()/2, ofGetHeight()/2, circle_r[i]);
ofSetColor(color_r[i], color_g[i], 255, 10);
}
}