fillpoly

The function is used to draw a filled polygon with a border.

void fillpoly(
	int numpoints,
	const int *polypoints
);

Parameters

numpoints

The number of polygon vertices.

polypoints

The coordinates of each point, the number of array elements is numpoints * 2.
The function automatically connects the polygon start and end.

Return Value

None

Remarks

The function is declared in graphics.h and is used to be compatible with function of the same name in Turbo C, equivalent to the fillpolygon function in easyx.h.

It is recommended that use fillpolygon instead of the function.

Examples

The following snippet draws a closed fill triangle:

int points[] = {50, 200,  200, 200,  200, 50};
fillpoly(3, points);