# Pshape ... not in shape

**URL:** <https://discourse.processing.org/t/pshape-not-in-shape/22125>\
**Category:** Beginners\
**Created:** [June 24, 2020, 10:28am UTC](https://discourse.processing.org/t/pshape-not-in-shape/22125 "2020-06-24T10:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![klap](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@klap](https://discourse.processing.org/u/klap)\
**Post date:** [June 24, 2020, 10:28am UTC](https://discourse.processing.org/t/pshape-not-in-shape/22125/1 "2020-06-24T10:28:08Z")

</div>

Why is the droplet working with the code which is commented out and not in the Pshape version?

```auto
 //fill(0, 0, 255);
//beginShape();
//vertex(50, 10);
//bezierVertex(50, 10, 5, 50, 50, 60);
//bezierVertex(70, 50, 70, 30, 50, 10);
//endShape();

PShape drup;

void setup() {
  size(100, 100);
  drup = createShape();
  drup.beginShape();
   //drup.noStroke();
  drup.fill(0, 0, 255);
  drup.vertex(50, 10);
  drup.bezierVertex(50, 10, 5, 50, 50, 60);
  drup.bezierVertex(70, 50, 70, 30, 50, 10);
  drup.endShape();
}

void draw() {
  background(204);
  shape(drup, 0, 0);
}

```

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [June 24, 2020, 7:59pm UTC](https://discourse.processing.org/t/pshape-not-in-shape/22125/2 "2020-06-24T19:59:49Z")

</div>

Hi, there is indeed some issues when created bezierVertex on a PShape object.

You can use `drup = createShape(PShape.PATH);` to fix it.

Or you can also change the rendered to P2D `size(100, 100, P2D);`
