Hello all,
I am trying to draw 5 concentric circles using polylines. The following code builds properly but seems to crash once I run. Any ideas on why?
#define NUM_CIRCLES 5
ofPolyline circle[NUM_CIRCLES];
int innerCircleSize = 100;
int circleRes = 30;
void testApp::setup(){
//draw circles
for(int i=0; i < NUM_CIRCLES; i++){
innerCircleSize = innerCircleSize + 30;
circle[i].arc(ofGetWidth()/2, ofGetHeight()/2, innerCircleSize, innerCircleSize, 0, 360, circleRes);
circle[i].setClosed(true);
}
}
void testApp::draw(){
ofSetColor(ofColor::blue);
circle[NUM_CIRCLES].draw();
}