svg rendering with nanosvg

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
ingsoc451
Citizen
Posts: 89
Joined: Sat Feb 06, 2016 9:42 pm
Location: Oceania

svg rendering with nanosvg

Post by ingsoc451 » 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.
https://github.com/monolifed/lua_nsvg.c
Edit: now supports full lua table creation for NSVGimage struct


.
Attachments
nanosvg.love
OBSOLETE, see github repo
(40.6 KiB) Downloaded 151 times
Last edited by ingsoc451 on Wed Oct 16, 2019 10:16 am, edited 3 times in total.
eom

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).

User avatar
ingsoc451
Citizen
Posts: 89
Joined: Sat Feb 06, 2016 9:42 pm
Location: Oceania

Re: svg rendering with nanosvg

Post by ingsoc451 » 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.
Attachments
nanosvg.love
obsolete, see github
(40.53 KiB) Downloaded 140 times
Last edited by ingsoc451 on Sun Oct 13, 2019 9:45 pm, edited 1 time in total.
eom

User avatar
ingsoc451
Citizen
Posts: 89
Joined: Sat Feb 06, 2016 9:42 pm
Location: Oceania

Re: svg rendering with nanosvg

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

Modified it further and added on github
eom

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests