> For the complete documentation index, see [llms.txt](https://prismaxdocs.gitbook.io/prismax-partners/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prismaxdocs.gitbook.io/prismax-partners/interface-basics/rects.md).

# Rects

Build you interface with Rect and some rich custom features.

## Add Rect - *AddRect*

```lua
prismaX.api.Drawing.AddRect('rectangle', 500.0, 200.0, 500.0, 400.0, 10, 10, 10, 255, 10, 0)
--prismaX.api.Drawing.AddRect(id, x, y, w, h, r, g, b, a, rounding, order)
```

## Add Rect Filled - *AddRectFilled*

```lua
prismaX.api.Drawing.AddRectFilled('rectanglefilled', 500.0, 200.0, 500.0, 400.0, 10, 10, 10, 255, 10, 0)
--prismaX.api.Drawing.AddRectFilled(id, x, y, w, h, r, g, b, a, rounding, order)
```

## Add Shadow Rect - *AddShadowRect*

```lua
prismaX.api.Drawing.AddShadowRect('rectangleshadow', 500.0, 200.0, 500.0, 400.0, 255, 255, 255, 255, 0, 80, 0)
--prismaX.api.Drawing.AddShadowRect(id, x, y, w, h, r, g, b, a, rounding, shadow, order)
```

## Add Gradient Rect - *AddGradientRect*

```lua
prismaX.api.Drawing.AddGradientRect('rectanglegradient', 500.0, 200.0, 195, 35, 255, 0, 0, 255, 0, 255, 0, 255, 7)
--prismaX.api.Drawing.AddGradientRect(id, x, y, w, h, r, g, b, a, r2, g2, b2, a2, rounding, order)
```

{% hint style="info" %}
If used as shown above, it should work just fine. Otherwise, contact our development team!
{% endhint %}
