# DrawBorderRect

## Syntax

```lua
Susano.DrawBorderRect(x, y, w, h, fillR, fillG, fillB, fillA, borderR, borderG, borderB[, borderA][, borderThickness][, rounding]) -> void
```

## Parameters

{% hint style="info" %}
`x, y` (number): Top-left corner in pixels.

`w, h` (number): Width and height in pixels.

`fillR, fillG, fillB, fillA` (number): Fill color. Accepts 0..1 floats or 0..255 integers.

`borderR, borderG, borderB` (number): Border color. Accepts 0..1 floats or 0..255 integers.

`borderA` (number, optional): Border alpha. Default: 1.0.

`borderThickness` (number, optional): Border thickness in pixels. Default: 1.0.

`rounding` (number, optional): Corner rounding in pixels. Default: 0.0.
{% endhint %}

## Return(s)

{% hint style="info" %}
None
{% endhint %}

## Behavior

{% hint style="info" %}
Draws a filled rectangle first, then overlays a rectangle outline on top with the border color. Combines DrawRectFilled + DrawRect in one call.
{% endhint %}

## Example(s)

```lua
Susano.BeginFrame()
Susano.DrawBorderRect(100, 100, 250, 60, 30,30,50,255, 100,100,200,255, 2, 6)
Susano.SubmitFrame()
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.susano.re/api-reference/drawing-functions/drawborderrect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
