suse man page for polygon

Query: polygon

OS: suse

Section: 3alleg4

Links: suse man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

polygon(3alleg4)						  Allegro manual						  polygon(3alleg4)

NAME
polygon - Draws a filled polygon. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void polygon(BITMAP *bmp, int vertices, const int *points, int color);
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: 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));
SEE ALSO
triangle(3alleg4), polygon3d(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), excamera(3alleg4) Allegro version 4.4.2 polygon(3alleg4)
Related Man Pages
rectfill(3alleg4) - debian
excamera(3alleg4) - suse
excamera(3alleg4) - centos
rectfill(3alleg4) - osx
rectfill(3alleg4) - plan9
Similar Topics in the Unix Linux Community
How to get data only inside polygon created by points which is part of whole data from file?
Create polygon around dot