void drawStars(void){
int numPoints=20;
float Rad= 4;
float Rad2=8+ rand()%4;
Vec2d P;
Vec2d center(200,200);
int i;
for(i=0;i<100;i++){
glBegin(GL_TRIANGLE_FAN);
for(angle = 0; angle < numPoints; angle++){
//180 degrees = PI radians
float A = 2*PI /numPoints * angle;
if (angle%2==0){
P.x = cos(A) * Rad;
P.y = sin(A) * Rad;
}
else{
P.x = cos(A) * Rad2;
P.y = sin(A) * Rad2;
}
P = P+ center;
glVertex2f(P.x, P.y);
}
glEnd();
center.x=rand()%400;
center.y=rand()%400;
}
}
