For the complete documentation index, see llms.txt. This page is also available as Markdown.

hudRenderer.drawTextureGradient

drawTextureGradient(url, x, y, w, h, c1, c2, vertical): void

Draws an image from an http/https URL with a two-color gradient overlay blended on top of the texture RGB.

Parameters

url

string

An http/https image URL.

x

number

The x position.

y

number

The y position.

w

number

The width.

h

number

The height.

c1

Color

The start color.

c2

Color

The end color.

vertical

boolean

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

Returns

void

Last updated