void  drawElipse( int points, Vec2d center,float strechx, float strechy){

Vec2d cp; //circle points as vector

for (int i = 0; i<points; i++){

 float angle = ((2*PI)/points)*i; //2*pi is 360 divided into degree segments based on points multiplied by what point your on


 cp.x= cos(angle) * strechx;  //gets the length of x and muiltiplies by stretch

 cp.y= sin(angle) * strechy;  //gets the length of y and muiltiplies by stretch

 cp = cp+center; //sets the offset center point

 //cp.x += 300; //adds in the of set

 //cp.y += 300; //adds in the of set

 glVertex2f(cp.x,cp.y);


 }

}


void  drawCircle(float radius, int points, Vec2d center){

Vec2d cp; //circle points as vector

for (int i = 0; i<points; i++){

 float angle = ((2*PI)/points)*i; //2*pi is 360 divided into degree segments based on points multiplied by what point your on


 cp.x= cos(angle) * radius;  //gets the length of x and muiltiplies by stretch

 cp.y= sin(angle) * radius;  //gets the length of y and muiltiplies by stretch

 cp = cp+center; //sets the offset center point

 //cp.x += 300; //adds in the of set

 //cp.y += 300; //adds in the of set

 glVertex2f(cp.x,cp.y);


 }

}


void displayFunc ( void )  //arg void returns void

{

glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );//clears buffers(what buffers?) by setting bit mask or.

glColor3f( 1,0,0 );//sets color can add a alpha on end 255,255,255,255

//glRectf( mouseX-rectSize, mouseY-rectSize, mouseX+rectSize, mouseY+rectSize); //two arguments cords of perp corners this case based on mouse

Vec2d a(50,500);// vector line

Vec2d b(100,500);// vector line

Vec2d c(150,500);// vector line

Vec2d d(200,500);// vector line

Vec2d e(250,500);// vector line

Vec2d f(300,500);// vector line

Vec2d g(350,500);// vector line

Vec2d h(400,500);// vector line

Vec2d i(450,500);// vector line

Vec2d j(500,500);// vector line

// place your drawing code here

//circles

glBegin(GL_LINE_LOOP);

    drawElipse(30,a,10,100);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,b,20,90);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,c,30,80);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,d,40,70);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,e,50,60);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,f,60,50);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,g,70,40);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,h,80,30);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,i,90,20);

glEnd( );

glBegin(GL_LINE_LOOP);

    drawElipse(30,j,100,10);

glEnd( );