---
name: "al_draw_pieslice"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_draw_pieslice/3alleg5"
---

# al\_draw\_pieslice(3alleg5)

Allegro 5 API

## NAME

al\_draw\_pieslice - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_primitives.h>
  void al_draw_pieslice(float cx, float cy, float r, float start_theta,
     float delta_theta, ALLEGRO_COLOR color, float thickness)
  ```

## DESCRIPTION

Draws a pieslice (outlined circular sector).

*Parameters:*

- •

  cx, cy - Center of the pieslice

- •

  r - Radius of the pieslice

- •

  color - Color of the pieslice

- •

  start\_theta - The initial angle from which the pieslice is drawn in radians

- •

  delta\_theta - Angular span of the pieslice in radians (pass a negative number to switch direction)

- •

  thickness - Thickness of the circle, pass `<= 0` to draw hairline pieslice

## SINCE

5\.0.6, 5.1.0

## SEE ALSO

al\_draw\_filled\_pieslice(3alleg5)
