self:destroy

Client

Destroys the SVG instance and frees its resources


Syntax

local status = self:destroy()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

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

tex:destroy()

On this page