# Is it possible using nanosvg for sprites?

**URL:** <https://forums.solar2d.com/t/is-it-possible-using-nanosvg-for-sprites/357853>\
**Category:** Audio and Graphics\
**Created:** [June 26, 2026, 9:19am UTC](https://forums.solar2d.com/t/is-it-possible-using-nanosvg-for-sprites/357853 "2026-06-26T09:19:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoenixongogo](https://forums.solar2d.com/user_avatar/forums.solar2d.com/phoenixongogo/32/2775_2.png) [@phoenixongogo](https://forums.solar2d.com/u/phoenixongogo)\
**Post date:** [June 26, 2026, 9:19am UTC](https://forums.solar2d.com/t/is-it-possible-using-nanosvg-for-sprites/357853/1 "2026-06-26T09:19:13Z")

</div>

I tried this with no luck:

```auto
local nanosvg = require"plugin.nanosvg"
local mC_kSvgPath = “snow-mountain.svg”

local tex = nanosvg.newTexture({
	filename = mC_kSvgPath,
	pixelWidth = 512,
	height = 512,
	width = 512,

})

if tex then
    local options = {
        width = 64,
        height = 64,
        numFrames = 64,
        sheetContentWidth = 512,
        sheetContentHeight = 512
    }

    local sequenceData =
    {
        name="walking",
        start=1,
        count=10,
        time=100,
        loopCount = 0,   
        loopDirection = "bounce"   
    }
    local myImageSheet = graphics.newImageSheet(tex.filename, tex.baseDir, options)
    local _oSpr = display.newSprite( myImageSheet, sequenceData )
    _oSpr.x, _oSpr.y = 160,240

end

```

anyone knows the proper way for that? 🤨
