# ellipsoid()

## Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2Fug57wNZM93IkghBnUcnD%2Fellipsoid%20simple.PNG?alt=media&#x26;token=6a6b5ee1-e5ca-4d68-86e2-a280b95e7359" alt=""><figcaption></figcaption></figure>

## Syntax

```python
ellipsoid([radiusx], [radiusy], [radiusz], [detailX], [detailY])
```

<table><thead><tr><th width="140">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>radiusX</td><td>radius of the ellipsoid in the x-direction</td></tr><tr><td>radiusY</td><td>radius of the ellipsoid in the y-direction</td></tr><tr><td>radiusZ</td><td>radius of the ellipsoid in the z-direction</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)
  ellipsoid(50, 75, 50)
```

</details>

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2F8KEAQmKEdzQL2GjlxILa%2Fellipsoid%20full.gif?alt=media&#x26;token=c60e9158-d35d-4167-81fa-83f7649004ea" alt=""><figcaption></figcaption></figure>

## Description

draws a **UV** **deformed sphere** with a specified radius.

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