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

hudRenderer.drawSVG

Call Signature

drawSVG(url, x, y, scale, color): void

Draws an SVG from an http/https URL, rasterised at the given scale (1.0 = native SVG size in pixels). The download happens asynchronously; the call is silently skipped until ready. Cached per (url, scale) so each distinct scale is sharp.

Parameters

url

string

An http/https SVG URL.

x

number

The x position.

y

number

The y position.

scale

number

The rasterization scale.

color

Color

The flat tint color.

Returns

void

Call Signature

drawSVG(url, x, y, scale, color, glowAmount): void

Draws an SVG from an http/https URL with a soft glow behind it.

Parameters

url

string

An http/https SVG URL.

x

number

The x position.

y

number

The y position.

scale

number

The rasterization scale.

color

Color

The flat tint color.

glowAmount

number

The glow blur radius in pixels.

Returns

void

Last updated