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

# Draw Gradient Rect

Queues a vertical gradient (first color on top, second on bottom). Rounding and flags are accepted but ImGui's multicolor primitive cannot round them.

## **Syntax**

```lua
refresh.Drawing.DrawGradientRect(x, y, w, h, r, g, b, a, r2, g2, b2, a2 [, rounding, flags])
```

## Usage Example

```lua
refresh.Drawing.DrawGradientRect(100.0, 100.0, 100.0, 100.0, 0, 255, 0, 255, 255, 0, 0, 255)
```
