logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

polygon - Draws a filled polygon. Allegro game programming library.

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));

Name

       polygon - Draws a filled polygon. Allegro game programming library.

See Also

triangle(3alleg4), polygon3d(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), excamera(3alleg4)

Allegro                                           version 4.4.3                                 polygon(3alleg4)

Synopsis

#include<allegro.h>voidpolygon(BITMAP*bmp,intvertices,constint*points,intcolor);

See Also