# n(a) = Polygon Definition

```
n(a) = { yappPolygonDef } : Required if shape = yappPolygon specified
```

* Predefined Shapes:"
* shapeIsoTriangle - An Isosceles triangle. Note the width is equal to the bounding width but the height is less.
* shapeIsoTriangle2 - an Isosceles triangle with the center at the center of the bounding box.
* shapeHexagon - a hexagon centered in the bounding rectangle.
* shape6ptStar - a 6 pointed star centered in the bounding rectangle.
* &#x20;shapeTriangle - triangle with height and width matching the bounding rectangle but centered in the rectangle.
* shapeTriangle2- triangle with height and width matching the bounding rectangle. At 90 degree increments the base of the triangle aligns with the bounding box.&#x20;
* shapeArrow - Home plate shaped arrow. Useful for buttons.

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FkA3Trbsoy8PCbFUyvRDD%2Fshape_animation.gif?alt=media&#x26;token=1bfe36ba-6e2c-47c7-bd3f-467ec6a826c5" alt=""><figcaption><p>20x20 shapes with the bounding rectangle in pink.</p></figcaption></figure>

Notice how the center affects the rotation of the shapes.

see [Polygon Definition](https://mrwheel-docs.gitbook.io/yappgenerator_en/advanced-options/polygon-definitions) to create your own polygons.
