Vital.sandbox
SVG

self:destroy

Client

Destroys the SVG instance and frees its resources


Syntax

local status = self:destroy()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Destroy an SVG instance
local icon = svg.create("assets/icon.svg")

icon:destroy()

On this page