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

Last updated