---
name: "al_draw_circle"
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_circle/3alleg5"
---

# al\_draw\_circle(3alleg5)

Allegro 5 API

## NAME

al\_draw\_circle - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

Draws an outlined circle.

*Parameters:*

- •

  cx, cy - Center of the circle

- •

  r - Radius of the circle

- •

  color - Color of the circle

- •

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

## SEE ALSO

al\_draw\_filled\_circle(3alleg5), al\_draw\_ellipse(3alleg5)
