.\" Generated by the Allegro makedoc utility .TH polygon 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME polygon \- Draws a filled polygon. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void polygon(BITMAP *bmp, int vertices, const int *points, int color); .SH DESCRIPTION Draws a filled polygon with an arbitrary number of corners. Pass the number of vertices and an array containing a series of x, y points (a total of vertices*2 values). Example: .nf int points[12] = { 50, 50, 100, 100, 100, 150, 50, 200, 0, 150, 0, 100 }; ... clear_to_color(screen, makecol(255, 255, 255)); polygon(screen, 6, points, makecol(0, 0, 0)); .fi .SH SEE ALSO .BR triangle (3alleg4), .BR polygon3d (3alleg4), .BR drawing_mode (3alleg4), .BR makecol (3alleg4), .BR excamera (3alleg4)