# Bezier & ellipse

**URL:** https://discourse.processing.org/t/bezier-ellipse/29572
**Category:** Coding Questions
**Created:** [April 23, 2021, 2:33am UTC](https://discourse.processing.org/t/bezier-ellipse/29572 "2021-04-23T02:33:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kylu](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylu](https://discourse.processing.org/u/kylu)
#### Post date: [April 23, 2021, 2:33am UTC](https://discourse.processing.org/t/bezier-ellipse/29572/1 "2021-04-23T02:33:54Z")

</div>

Hey! i need some help,  
i’m working in a code, and i have a question, can i uso bezier in a ellipse?  
I need the shape of the ellipse to change as I go through it. Depending on the position of the mouse, the bezier position should change

---

<div class="post-metadata">

### Author: ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)
#### Post date: [April 23, 2021, 2:49am UTC](https://discourse.processing.org/t/bezier-ellipse/29572/2 "2021-04-23T02:49:00Z")

</div>

Welcome, @kylu

Like, draw an ellipse using Bézier curves? For a perfect circle, the positioning of the anchor and control points looks like this:

 ![processingpy02-22](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/ab255a09e5f49096f5a5b8ac9e8a95696bf71cf4.png)

---

<div class="post-metadata">

### Author: ![kylu](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylu](https://discourse.processing.org/u/kylu)
#### Post date: [April 23, 2021, 4:40pm UTC](https://discourse.processing.org/t/bezier-ellipse/29572/3 "2021-04-23T16:40:29Z")

</div>

thanks for answering! I would need to create an ellipse (using the format (ellipse (float, float, float, float)) that can later modify its curves, but always keeping the closed shape of an ellipse, I hope it is understood.

---

<div class="post-metadata">

### Author: ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)
#### Post date: [April 23, 2021, 8:37pm UTC](https://discourse.processing.org/t/bezier-ellipse/29572/4 "2021-04-23T20:37:41Z")

</div>

As far as I know, you cannot modify the curves of the `ellipse()` function. This is why I suggested drawing an ellipse using `bezierVertex()` functions with control points that you can manipulate.

If the distortion is relatively basic – like, just squashing/scaling, shearing, and rotating the entire shape – you can use an `ellipse()` function along with the `scale()`, `shearX()`, `shearY()`, and `rotate()` functions.

Do you have an example/reference for what you’re trying to accomplish?
