Draw fill ellipse using C/C++

#include<stdio.h>
#include<graphics.h>
#include<conio.h>

int main()
{
   int gd = DETECT,gm;
   int x ,y;
   initgraph(&gd, &gm, "");

   setcolor(RED);

   ellipse(200,300,100,100,100,100);

   setcolor(BLUE);
   fillellipse(150,100,100,100);


   getch();
   closegraph();
   return 0;
}

No comments:

Post a Comment