Love and SVG files?
- ZauberParacelsus
- Prole
- Posts: 6
- Joined: Wed Apr 18, 2012 3:39 am
Love and SVG files?
Has anyone written any code for loading SVG files with Love2D? Or is this something supported natively by Love2D with the image loader? The wiki doesn't specify which image formats are supported.
Re: Love and SVG files?
Hmm.. taking a look I can't seem to find what specific file formats are supported either. I do believe I've heard that vector formats are not supported though, so no SVG.
Re: Love and SVG files?
It's called LÖVE, not Love2D.
LÖVE uses DevIL for loading/saving raster images only. Vector support would be nice, but then you need extra Lua API to adjust points, curves, fills, etc, etc. I'm not sure if there's much demand for such machinery.
LÖVE uses DevIL for loading/saving raster images only. Vector support would be nice, but then you need extra Lua API to adjust points, curves, fills, etc, etc. I'm not sure if there's much demand for such machinery.
Last edited by pk on Sun Apr 29, 2012 9:08 am, edited 1 time in total.
ALL CREATURE WILL DIE AND ALL THE THINGS WILL BE BROKEN. THAT'S THE LAW OF SAMURAI.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Love and SVG files?
There is a PHP-script that can convert simple SVG images to Lua tables.
Here: https://github.com/gvx/space/blob/maste ... r.php#L162
Note: I didn't write it, although it was for a project of mine. The author was CyaNox, from who I haven't heard in a long time.
Here: https://github.com/gvx/space/blob/maste ... r.php#L162
Note: I didn't write it, although it was for a project of mine. The author was CyaNox, from who I haven't heard in a long time.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Google [Bot] and 5 guests