You are here

fillellipse function in C

Declaration of fillellipse function :-
void fillellipse(int x, int y, int xradius, int yradius);
x and y are coordinates of center of the ellipse, xradius and yradius are x and y radius of ellipse respectively.

C program for fillellipse

  1. #include <graphics.h>
  2. #include <conio.h>
  3.  
  4. int main()
  5. {
  6.    int gd = DETECT, gm;
  7.  
  8.    initgraph(&gd, &gm, "C:\\TC\\BGI");
  9.              
  10.    fillellipse(100, 100, 50, 25);
  11.  
  12.    getch();
  13.    closegraph();
  14.    return 0;
  15. }