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

hudRenderer.drawTexture

drawTexture(url, x, y, w, h, tint): void

Draws an image from an http/https URL with a flat colour tint. The download happens asynchronously; the call is silently skipped until the image is ready. Results are cached after the first successful load.

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.

tint

Color

The tint color (use Color(255,255,255,255) for no tint).

Returns

void

Last updated