svg rendering with nanosvg

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
monolifed
Party member
Posts: 140
Joined: Sat Feb 06, 2016 9:42 pm

svg rendering with nanosvg

Post by monolifed » Wed Feb 27, 2019 2:30 am

You have to compile nanosvg.so/dll on your system. You can use the build.sh as a hint.
I couldn't find a real use for it since I can pre-render SVGs in inkscape.
Edit: now supports full lua table creation for NSVGimage struct


.
Last edited by monolifed on Wed Mar 18, 2020 1:28 pm, edited 4 times in total.

poke1024
Prole
Posts: 6
Joined: Tue May 01, 2018 2:25 pm

Re: svg rendering with nanosvg

Post by poke1024 » Sun Mar 03, 2019 10:26 am

This is super elegant.

If you ever need something for meshes, you might want to look at https://github.com/poke1024/tove2d (disclaimer: I'm the author).

monolifed
Party member
Posts: 140
Joined: Sat Feb 06, 2016 9:42 pm

Re: svg rendering with nanosvg

Post by monolifed » Sun Mar 03, 2019 9:07 pm

Nice library (I think it is not on https://love2d.org/wiki/Category:Libraries)

I changed this to make it a little more convenient to use.
Last edited by monolifed on Sun Oct 13, 2019 9:45 pm, edited 1 time in total.

monolifed
Party member
Posts: 140
Joined: Sat Feb 06, 2016 9:42 pm

Re: svg rendering with nanosvg

Post by monolifed » Sun Oct 13, 2019 9:44 pm

Modified it further and added on github

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests