> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/hudrenderer.drawrectgradient.md).

# hudRenderer.drawRectGradient

> **drawRectGradient**(`x`, `y`, `w`, `h`, `radius`, `color1`, `color2`, `vertical`): `void`

Draws a rounded rectangle filled with a two-color gradient.

### Parameters

#### x

`number`

The x position.

#### y

`number`

The y position.

#### w

`number`

The width.

#### h

`number`

The height.

#### radius

`number`

The corner radius.

#### color1

[`Color`](/api/breeze/util/color.md)

color1 - The start color.

#### color2

[`Color`](/api/breeze/util/color.md)

color2 - The end color.

#### vertical

`boolean`

True for top-to-bottom, false for left-to-right.

### Returns

`void`
