//Program to fill ellipse
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,midx,midy;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
midx=getmaxx()/2; midy=getmaxy()/2;
setcolor(BLUE);
setfillstyle(2,YELLOW);
fillellipse(midx,midy,200,100);
setfillstyle(3,MAGENTA);
fillellipse(midx,midy,35,60);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.