# Equation-defined shapes - created from sampling lines or SVG import... or....?

**URL:** https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617
**Category:** Project Guidance
**Created:** [July 9, 2019, 9:26am UTC](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617 "2019-07-09T09:26:45Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![MuddyGardener](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/muddygardener/32/1719_2.png) [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)
#### Post date: [July 19, 2019, 3:44pm UTC](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617/13 "2019-07-19T15:44:24Z")

</div>

I’ve been trying to work with built-ins rather than approximating the function iteratively, on the theory that Processing can do that better than I can, and after messing around with a demo program in desmos to get the right specification for the Bezier control point coordinates, I can create the shape I want with a Bezier and a reflection of its control points in Processing. So - that’s nice.

But in taking the next step and adapting that definition to PShape I’ve run into the ‘bezier is flaky inside PShape’ problem - [bezierVertex() draws straight lines, not a curved line?](https://discourse.processing.org/t/beziervertex-draws-straight-lines-not-a-curved-line/3139/5)😉 - but that’s ok as I can either add an argument to createShape that fixes it for the default renderer, or change the renderer. It’s an open bug so there isn’t a solution that works for both situations.

---

_[View the full topic](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617)._
