# DrawRectFilled

## Syntax

```lua
Susano.DrawRectFilled(x, y, w, h, r, g, b[, a][, rounding]) -> void
```

## Parameters

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

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

`r, g, b` (number): Color. Accepts 0..1 floats or 0..255 integers (auto-detected).

`a` (number, optional): Alpha. 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" %}
Appends a filled rectangle to the build buffer. Visible after Susano.SubmitFrame() or on next present if auto-frame is enabled.
{% endhint %}

## Example(s)

```lua
Susano.BeginFrame()
Susano.DrawRectFilled(100, 100, 200, 50, 0.2, 0.2, 0.8, 0.9, 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/drawrectfilled.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.
