-
Notifications
You must be signed in to change notification settings - Fork 0
Home
algas edited this page Mar 1, 2012
·
2 revisions
Lightning is a python library that takes Swfmill's XML output and transforms it into SVG with CSS animation.
Lightning can be used as a simple parser, but it was created under the assumption of DB storage of the resulting SVG+CSS.
MIT
2.5 or higher
- lxml 2.3.1
- simplejson 2.2.1
$ python setup.py install
※ Required libraries will also be installed.
- Generate a HTML file from XML
$ cd lightning_core/sample $ python xml2html.py input.xml output.html
- Generate a static SVG file
$ cd lightning_core/sample $ python convert_svg.py input.xml output.svg
- Generate a HTML file with SVG + CSS animation
$ cd lightning_core $ python lightning_svg.py input.xml output.html
The resulting files can be displayed in any WebKit browser that supports SVG.
The primary target of Lightning is iPhone, so outputs may not work properly on other browsers.
- Safari (iPhone, Windows)
- Chrome (Windows, Linux) - depends on the WebKit implementation
- Opera (Linux) - depends on the WebKit / SVG implementation
- Android browsers - SVG is not supported.