# quad()

### Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2F2AkLTu5cgvvZfCDFyUzs%2Fquadplain.png?alt=media&#x26;token=97bc3bca-4dc9-4f67-8679-be5f04f1ba68" 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 %}
