# Curved Vertex Drawing Dilemma

**URL:** <https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653>\
**Category:** Coding Questions\
**Created:** [November 24, 2020, 2:04am UTC](https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653 "2020-11-24T02:04:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkalotihos](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lkalotihos](https://discourse.processing.org/u/lkalotihos)\
**Post date:** [November 24, 2020, 2:04am UTC](https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653/1 "2020-11-24T02:04:28Z")

</div>

I’m having some issues with my curved vertex drawing. I’ve set it up so the x/y coordinates display as my mouse moves, so it would be easier to get the exact sketch I want. Except for some reason, it’s still not displaying properly. My sketch is 700,700 - yet the vertex drawing isn’t aligning at the 700. It seems to be all shifted 100 up on the y axis.

Thanks for anyone’s help.

```auto
void setup(){
  size(700,700);
  background(255);
  
}

void draw(){
  background(255);
  
  //left hand background
  noStroke();
  fill(156, 135, 109);
  beginShape();
  curveVertex(700,700);
  curveVertex(554,567);
  curveVertex(533,528);
  curveVertex(505,501);
  curveVertex(475,471);
  curveVertex(461,457);
  curveVertex(455,419);
  curveVertex(437,385);
  curveVertex(440,361);
  curveVertex(453,354);
  curveVertex(434,295);
  curveVertex(439,273);
  curveVertex(458,258);
  curveVertex(465,237);
  curveVertex(485,226);
  curveVertex(506,238);
  curveVertex(525,267);
  curveVertex(610,310);
  curveVertex(638,440);
  curveVertex(657,475);
  curveVertex(700,630);
  curveVertex(700,700);
  endShape();
  
  //point identify
  fill(0);
  textSize(24);
  text(mouseX, mouseX-60, mouseY);
  text(mouseY, mouseX-60, mouseY-60);
  
  
}

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 24, 2020, 8:42am UTC](https://discourse.processing.org/t/curved-vertex-drawing-dilemma/25653/2 "2020-11-24T08:42:37Z")

</div>

The reference

> The first and last points in a series of **curveVertex()** lines will be used to guide the beginning and end of a the curve.

In my opinion this means that the first and last points are not really part of the line but are invisible and control the rest. So ` curveVertex(700,700);` should be your 2nd parameter (your second curveVertex command not the first. Remark: The first command could also be ` curveVertex(-1700,3700);`, so be well outside the screen, because it’s invisible and just a control point. Same goes for the end of the entire Shape.).

> **[curveVertex() / Reference](https://www.processing.org/reference/curveVertex_.html)**
>
> Specifies vertex coordinates for curves. This function may only be used between beginShape() and endShape() and only when there is no MODE parameter specified to beginShape(). The…
