# bezierVertex() draws straight lines, not a curved line?

**URL:** https://discourse.processing.org/t/beziervertex-draws-straight-lines-not-a-curved-line/3139
**Category:** Coding Questions
**Created:** [August 31, 2018, 4:40pm UTC](https://discourse.processing.org/t/beziervertex-draws-straight-lines-not-a-curved-line/3139 "2018-08-31T16:40:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)
#### Post date: [August 31, 2018, 5:36pm UTC](https://discourse.processing.org/t/beziervertex-draws-straight-lines-not-a-curved-line/3139/5 "2018-08-31T17:36:57Z")

</div>

> [@WakeMeAtThree](#):
>
> try `size(512,512,P2D)`

 ![16%20AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d6f1c15c79e52b62a1e261dd5fbd1fed0847923d.png)

> [@jb4x](#):
>
> suggest to use `createShape(PShape.PATH)`

 ![59%20AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2bef9bc65e9da7f956db7931c7a9203fd0c101a6.png)

Interesting. They both work, but `createShape(PShape.PATH);` definitely renders a better curve. I wonder why?

Also, I got this warning using `size(512,512, P2D):`

`2018-08-31 10:24:49.119 java[70424:4002899] pid(70424)/euid(502) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!`

What annoys me is that `PShape.PATH` is not mentioned at all in the [createShape()](https://processing.org/reference/createShape_.html) reference.

> One of the following parameters are used as the first parameter: **ELLIPSE** , **RECT** , **ARC** , **TRIANGLE** , **SPHERE** , **BOX** , **QUAD** , or **LINE**.

Thanks again to @jb4x and @WakeMeAtThree

---

_[View the full topic](https://discourse.processing.org/t/beziervertex-draws-straight-lines-not-a-curved-line/3139)._
