# arc()

### Example

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FHo52lA1oK5yMUZfDXCVf%2F90%20degree%20arc.png?alt=media\&token=5915f9e6-54c8-4fef-91ce-875d09efa83b)

```python
arc(200, 200, 300, 150, 0, 90)
```

### Syntax

```python
arc(x, y, width, height, Starting angle, Ending angle)
```

<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>width</td><td>width of the arc (length in x direction)</td></tr><tr><td>height</td><td>height of the arc (length in y direction)</td></tr><tr><td>starting angle</td><td>counter-clockwise angle of first arc arm from the positive x-axis</td></tr><tr><td>ending angle</td><td>counter-clockwise angle of second arc arm from the positive x-axis </td></tr></tbody></table>

### `(x, y, width, height...)`

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2Fgh9Eo6007Y5glNoLPIdm%2Fimage.png?alt=media&#x26;token=a62e9ec7-10c1-46fb-92bd-5068ec079578" alt=""><figcaption></figcaption></figure>

### `(..., Starting angle, ...)`

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2F7YyepaidTzk1Um1LQe9i%2Fstarting%20angle%20gif.gif?alt=media&#x26;token=09b80be7-97b8-427f-9acd-fb4e684c6cf2" alt=""><figcaption></figcaption></figure>

### `(..., Ending angle)`

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2Fhc7FoUaRdlAcxdtpFeIY%2Fending%20angle%20gif.gif?alt=media&#x26;token=be97d7bf-55a9-4a58-aa8b-34ee5aae2ba0" alt=""><figcaption></figcaption></figure>

### Description

**arc()** draws an arc on the canvas, using the inputs to determine the position and dimension of the shape. The width and height of the arc must always be parallel to the x-axis and y-axis respectively - this can only be changed separately with a rotation. The starting and ending angle must always be given in a counter-clockwise direction starting from the positive x-axis.

{% 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 %}
