• Have Any Question?
  • contact@eitworld.com

Fillellipse() Function





fillellipse() function as its name indicate is a function which is used to fill the color in ellipse .

void fillellipse(int x, int y, int xradius, int yradius);
  • fillellipse takes only 4 parameters center point and xradius and yradius and is capable of filling with any color and / or style set by setfillstyle() function.

Program

#include<stdio.h>

#include<conio.h>

#include<graphics.h>

void main()

{

int gd=DETECT, gm;

initgraph(&gd,&gm,” “);

fillellipse(320,200,100,150);

getch();

closegraph();

}

The above program will draw an ellipse of x-radius 100 cm and y-radius 150 cm at position (320,200) with white color filled inside. White color is default background color it would be taken as the default color until we set another color of the background.

Output

fillellipse



Real Time Web Analytics