Anyone know of a tool to create SVG files (or similar) using some kind of macro or command line?
For instance, if I want to draw several lines start starts at the same point, have the same length but different angles (this example is written in some kind of Basic looking pseudo code):
x=150
y=100
length=100
drawline x,y,length,0
drawline x,y,length,1.4
drawline x,y,length,2,8
drawline x,y,length,4.2
drawline x,y,length,5.6
drawline x,y,length,7.0
Or maybe even better; something like this:
x=150
y=100
length=100
For Angle=0 To 180 Step 1.4
drawline x,y,length,angle
Next Angle
Another acceptable approach would be:
xStart=150
yStart=100
Length=100
For Angle=0 To 180 Step 1.4
xEnd=xStart+Length*sin(Angle*π/180)
yEnd=xStart+Length*cos(Angle*π/180)
drawline xStart,yStart,xEnd,yEnd
Next Angle
I have had a quick look at Inkscape but I couldnt find any kind of command line or macro programming IDE there.