> 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/quad.md).

# quad()

### Example

<figure><img src="/files/6dZ9QNYvQHPmjFyJJOpZ" alt=""><figcaption></figcaption></figure>

```python
quad(250,100,100,100,50,200,350,350)
```

### Syntax

```python
quad(x1, y1, x2, y2, x3, y3, x4, y4)
```

<table><thead><tr><th width="167">Input</th><th>Description</th></tr></thead><tbody><tr><td>x1</td><td>x co-ordinate of the first corner <strong>(vertex 1)</strong></td></tr><tr><td>y1</td><td>y co-ordinate of the first corner <strong>(vertex 1)</strong></td></tr><tr><td>x2</td><td>x co-ordinate of the second corner <strong>(vertex 2)</strong></td></tr><tr><td>y2</td><td>y co-ordinate of the second corner <strong>(vertex 2)</strong></td></tr><tr><td>x3</td><td>x co-ordinate of the third corner <strong>(vertex 3)</strong></td></tr><tr><td>y3</td><td>y co-ordinate of the third corner <strong>(vertex 3)</strong></td></tr><tr><td>x4</td><td>x co-ordinate of the fourth corner <strong>(vertex 4)</strong></td></tr><tr><td>y4</td><td>y co-ordinate of the fourth corner <strong>(vertex 4)</strong></td></tr></tbody></table>

### Description

Creates a quadrilateral with corners (vertices) at the given co-ordinates. Co-ordinates **must** be specified in clockwise or counter-clockwise direction, otherwise the resulting shape might not contain only one area.

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