SVG
svg.create
Client
Creates a new SVG instance from a file path
Syntax
local instance = svg.create(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to the SVG asset |
Returns
| Type | Name | Description |
|---|---|---|
svg | instance | Created SVG instance |
Examples
local icon = svg.create("assets/icon.svg")