hudRenderer.drawSVGWithEffect
Call Signature
drawSVGWithEffect(
url,x,y,scale,alpha):void
Draws an SVG from an http/https URL colored with the current HUD effect (rainbow/gradient/pulse/none).
Parameters
url
string
An http/https SVG URL.
x
number
The x position.
y
number
The y position.
scale
number
The rasterization scale.
alpha
number
The opacity (0.0β1.0).
Returns
void
Call Signature
drawSVGWithEffect(
url,x,y,scale,alpha,glowAmount):void
Draws an SVG from an http/https URL with the current HUD effect and 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.
alpha
number
The opacity (0.0β1.0).
glowAmount
number
The glow blur radius in pixels.
Returns
void
Last updated