User:Dave Young/Computata Miscellanea: txt-to-svg.py

From XPUB & Lens-Based wiki
< User:Dave Young
Revision as of 21:17, 13 December 2011 by Dave Young (talk | contribs) (Created page with "Category: Cookbook ==txt-to-svg.py== This script is a development of previous experiments with using python to generate Literal Draw code, although in this version it bypass...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


txt-to-svg.py

This script is a development of previous experiments with using python to generate Literal Draw code, although in this version it bypasses the literal draw application in favour of directly producing an svg file that is viewable in a browser or can be edited in Inkscape. The scripts takes three arguments: a textfile that functions as a grid-template for what is to be drawn, an outputfilename.svg, and the size of each "pixel" in the drawing.