Last updated
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.
url
string
An http/https SVG URL.
x
number
The x position.
y
number
The y position.
scale
number
The rasterization scale.
color
The flat tint color.
void
drawSVG(
url,x,y,scale,color,glowAmount):void
Draws an SVG from an http/https URL with a soft glow behind it.
url
string
An http/https SVG URL.
x
number
The x position.
y
number
The y position.
scale
number
The rasterization scale.
color
The flat tint color.
glowAmount
number
The glow blur radius in pixels.
void
Last updated