> 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.drawrectwitheffect.md).

# hudRenderer.drawRectWithEffect

> **drawRectWithEffect**(`x`, `y`, `w`, `h`, `radius`, `alpha`): `void`

Draws a rounded rectangle colored with the current HUD effect (rainbow/gradient/pulse). Falls back to the user's static color when the effect is NONE.

### Parameters

#### x

`number`

The x position.

#### y

`number`

The y position.

#### w

`number`

The width.

#### h

`number`

The height.

#### radius

`number`

The corner radius.

#### alpha

`number`

The opacity (0.0–1.0).

### Returns

`void`
