fillpoly

This 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

This function is obsolete and is declared only in graphics.h.

It is recommended that usefillpolygon 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);
(贡献者:Krissi  编辑