Vital.sandbox
SVG

svg.create

Client

Creates a new SVG instance from a file path


Syntax

local instance = svg.create(path)

Parameters

TypeNameDescription
stringpathFile path to the SVG asset

Returns

TypeNameDescription
svginstanceCreated SVG instance

Examples

Create an SVG instance from a file
local icon = svg.create("assets/icon.svg")

On this page