> For the complete documentation index, see [llms.txt](https://mrwheel-docs.gitbook.io/yappgenerator_en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mrwheel-docs.gitbook.io/yappgenerator_en/labels.md).

# Labels

This is the API for labels:

```
Default origin = yappCoordBox: box[0,0,0]

Parameters:
  Required:
   p(0) = posx
   p(1) = posy/z
   p(2) = rotation degrees CCW
   p(3) = depth : positive values go into case (Remove) negative valies are raised (Add)
   p(4) = plane { yappLeft | yappRight | yappFront | yappBack | yappLid | yappBase }
   p(5) = font
   p(6) = size
   p(7) = "label text"
  Optional:
   p(8) = Expand : Default = 0 : mm to expand text by (making it bolder) 
   p(9) = Direction : { <yappTextLeftToRight>, yappTextRightToLeft, yappTextTopToBottom, yappTextBottomToTop }
   p(10) = Horizontal alignment : { <yappTextHAlignLeft>, yappTextHAlignCenter, yappTextHAlignRight }
   p(11) = Vertical alignment : {  yappTextVAlignTop, yappTextVAlignCenter, yappTextVAlignBaseLine, <yappTextVAlignBottom> } 
   p(12) = Character Spacing multiplier (1.0 = normal)

```

Here is the code for the labels in the next images:

```
labelsPlane = 
[
    [ 30, 30,  90, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE" ]
   ,[ 60, 30,  30, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE30" ]
   ,[100, 30, 210, 1, yappBase,    "Liberation Mono:style=bold", 7, "BASE210" ]
   ,[ 30, 30,  90, 1, yappLid,     "Liberation Mono:style=bold", 7, "LID" ]
   ,[ 60, 30,  45, 1, yappLid,     "Liberation Mono:style=bold", 7, "LID45" ]
   ,[  8, 10,   0, 1, yappLeft,    "Liberation Mono:style=bold", 7, "LEFT" ]
   ,[ 10, 10,   0, 1, yappRight,   "Liberation Mono:style=bold", 7, "RIGHT" ]
   ,[ 20, 10,   0, 1, yappFront,   "Liberation Mono:style=bold", 7, "FRONT" ]
   ,[ 20, 10,   0, 1, yappBack,    "Liberation Mono:style=bold", 7, "BACK" ]

```

<div><figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FEPWccJyzoYWsNy39m6GY%2FYAPPlabelsBase.png?alt=media&amp;token=015ff219-4eff-4886-bedb-fe44b0fd18b1" alt=""><figcaption></figcaption></figure> <figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FqPBG8CrTHgNnukXyiGx5%2FYAPPlabelsLid.png?alt=media&amp;token=e0d969a3-c0b7-401f-9d8f-957c693f34d9" alt=""><figcaption></figcaption></figure></div>

Here is an example if the use of the Depth (**p(3)**) parameter:

```
labelsPlane =  
[
    [ 20, 10, 90, 1, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 1 I" ]
   ,[ 40, 10, 90, 2, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 2 I" ]
   ,[ 60, 10, 90, 3, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 3 I" ]
   ,[ 80, 10, 90, 4, yappLid,  "Liberation Mono:style=bold", 7, "LABEL depth 4 I" ]

];
```

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FwmR0l5lpcibUa0qpFUEd%2FYAPPlabelsDepth.png?alt=media&amp;token=57f56791-d71d-4055-bc5a-db909b003a6d" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://832938294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI46RW7gXIHinmkl2pBq%2Fuploads%2FEFThJyKAAvL6iSU3DdW7%2FScreenshot%202023-12-05%20at%2012.42.59.png?alt=media&amp;token=87524221-0c1c-4145-b084-3695dc6adf42" alt=""><figcaption></figcaption></figure>
