# plane()

## Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2F2p5VWTOTlvK7b7UNidCI%2Fplane%20simple.PNG?alt=media&#x26;token=12c0f219-08b6-4507-a664-da8a1f4ccb51" alt=""><figcaption></figcaption></figure>

## Syntax

```python
plane([width], [height], [detailX], [detailY])
```

<table><thead><tr><th width="140">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>width</td><td>width of the plane</td></tr><tr><td>height</td><td>height of the plane</td></tr></tbody></table>

<details>

<summary>Example Full Code</summary>

```python
def setup():
  createCanvas(300,300, WEBGL)

def draw():
  background(255, 79, 132)
  orbitControl()
  stroke(176, 235, 51)
  fill(112, 88, 255)
  strokeWeight(2)

  r = frameCount
  rotateX(r)
  rotateY(-r)
  rotateZ(r)
  plane(200, 100)
```

</details>

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2F2Ubvqf7dyc8leC8e1XZI%2Fplane%20full.gif?alt=media&#x26;token=0e16318d-ace0-45f1-af12-508a417ec895" alt=""><figcaption></figcaption></figure>

## Description

draws a plane of a specified width and height **in the x-y plane.** So, the width is the length in the x-direction, where the height is the length in the y-direction.

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