Drawing vector graphics using a command line
Johnny Rosenberg
gurus.knugum at gmail.com
Sun Sep 20 12:44:51 UTC 2015
Hi!
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've had a quick look at Inkscape but I couldn't find any kind of command
line or macro programming IDE there.
Kind regards
Johnny Rosenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150920/d28b6bf8/attachment.html>
More information about the ubuntu-users
mailing list