---
name: "al_draw_filled_polygon"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_draw_filled_polygon"
---

# al\_draw\_filled\_polygon(3)

Allegro 5 API

## NAME

al\_draw\_filled\_polygon - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_primitives.h>
  void al_draw_filled_polygon(const float *vertices, int vertex_count,
     ALLEGRO_COLOR color)
  ```

## DESCRIPTION

Draw a filled, simple polygon. Simple means it does not have to be convex but must not be self-overlapping.

- •

  vertices - Interleaved array of (x, y) vertex coordinates

- •

  vertex\_count - Number of vertices in the array

- •

  color - Color of the filled polygon

When the y-axis is facing downwards (the usual), the coordinates must be ordered anti-clockwise.

## SINCE

5\.1.0

## SEE ALSO

[al\_draw\_polygon(3)](/al_draw_polygon/3.md), [al\_draw\_filled\_polygon\_with\_holes(3)](/al_draw_filled_polygon_with_holes/3.md)
