I have the following bezier shape:

[![A bezier shape](https://i.stack.imgur.com/0RZAb.png)](https://i.stack.imgur.com/0RZAb.png)

The shape was achieved by the following code:

```java
int width = 800; int height = 800;
int centerX = width/2; int centerY = height/2;
int lefterX = width/6; int upperY = height*5/6;
int righterX = width*5/6; int lowerY = height*5/6;

for (int y = 0; y <= height; y += 9) {
  bezier(lefterX, centerY, 
    centerX, y, 
    centerX, y, 
    righterX, centerY);
}

```

Now, I want to make a vertical version of this. I wrote the following code:

```java
for (int x = 0; x <= width; x += 9) {
  bezier(centerX, upperY, 
    x, centerY, 
    x, centerY, 
    centerX, lowerY);
}

```

However, the outcome turns out incomplete, only rendering the bottom half:

[![An incomplete bezier shape with only the bottom half drawn](https://i.stack.imgur.com/t6Gwt.png)](https://i.stack.imgur.com/t6Gwt.png)

What is missing from the code?