> For the complete documentation index, see [llms.txt](https://learnpython.strivemath.com/p5-python-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnpython.strivemath.com/p5-python-web/reference/shapes/2d/circle.md).

# circle()

### Example

![](/files/i65LB9Bkt63KXAAHLDWf)

```python
circle(200, 200, 150)
```

### Syntax

```python
circle(x, y, diameter)
```

<table><thead><tr><th width="167">Input</th><th>Description</th></tr></thead><tbody><tr><td>x</td><td>x co-ordinate of the center</td></tr><tr><td>y</td><td>y co-ordinate of the center</td></tr><tr><td>diameter</td><td>diameter of the circle</td></tr></tbody></table>

<figure><img src="/files/J9tstUQQ1Jooor9CrOI8" alt=""><figcaption></figcaption></figure>

### Description

**circle()** draws a circle on the canvas, using the inputs to determine the position and dimension of the shape.

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
