👨💻 about me home CV/Resume News 🖊️ Contact Github LinkedIn I’m a Haskeller 🏆 Best of LuaX hey bang ypp panda lsvg Fizzbuzz makex Calculadoira TPG todo pwd rrpi
lsvg
is a Lua interpreter specialized to generate SVG
images.
It is based on LuaX and uses a pure Lua library to generate SVG images. It optionally requires ImageMagick to make PNG images.
lsvg
was initially inspired by svg-lua.
lsvg
is available on Github: https://github.com/CDSoft/lsvg.
lsvg
uses LuaX.
$ git clone https://github.com/CDSoft/luax && make -C luax install
$ git clone https://github.com/CDSoft/lsvg
$ cd lsvg
$ make install
If LuaX is not installed yet, the first compilation may take a while…
$ lsvg
lsvg <Lua scripts> <output files> [-- <other args>]
<Lua scripts>
Lua script using the svg module
to build an SVG image in a global variable (img)
<output files>
Output file names where the image is saved
(SVG, PNG or PDF)
<other args>
Arguments given the to input Lua scripts
through the arg global variable
$ lsvg demo.lua demo.svg -- lsvg demo
This command stores {"lsvg", "demo"}
in
arg
, executes demo.lua
and produces demo.svg
:
No documentation yet. Just read the source code…
lsvg is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
lsvg is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with lsvg. If not, see <https://www.gnu.org/licenses/>.
For further information about lsvg you can visit
http://cdelord.fr/lsvg