
8 Sep
2006
8 Sep
'06
10:37 p.m.
On Fri, Sep 08, 2006 at 04:20:36PM -0500, Peng Yu wrote:
Hi,
Suppose, I want to generate an array of dots. Is there any loop structure in SVG that I can use instead of input all the code below the email manually?
SVG doesn't do scripting, but as it is part of the grand combine, you can use Javascript to generate SVG. I do quite a bit of programattically generated SVG for my work, but we tend to use C++ or Python for that work, dumping a file that looks similar to the example. The benefit of that over the Javascript version is that you can preview the file in your file manager on Linux, or in Inkscape/GIMP.
--
----------------------------------------------------------------------------
Computer Science is as much about computers as astronomy is about telescopes
-- Edsger Wybe Dijkstra (1930-2002)
----------------------------------------------------------------------------