Skip to main content

renderer.load_svg

Loads a SVG from a string. The file can for example be loaded using readfile. Returns a texture ID that can be used with renderer.texture, or nil on failure

renderer.load_svg(contents: string, width: number, height: number): number

Arguments

NameDescriptionType
contentsSVG file contentsstring
widthWidthnumber
heightHeightnumber

Returns texture: number