<line x1="0" y1="0" x2="2" y2="3" />
x1="0"
you can define a parameter 'a' and use x1="{0.5*sin(a)}"
. This can be useful when your design needs to be constructed on various scales, out of different materials etc.mm | Millimeters |
---|---|
cm | Centimeters |
in | Inches |
px | Pixels |
new | start a new design |
---|---|
load | load an existing parametric design form file or from the online templae library |
save | save your design as a parametric file |
pi=3.14159265
r=5
theta=pi/2
You can now replace the numbers in the SVG code by variables or functions, placed within curly brackets. For example:<line x1="0" y1="0" x2="{r*sin(theta)}" y2="{-r*cos(theta)}" />
element | example code | |
---|---|---|
rectangle | <rect x="10" y="10" height="100" width="100"/> | |
circle | <circle cx="50" cy="50" r="25"/> | |
ellipse | <ellipse cx="50" cy="50" rx="20" ry="30"/> | |
line | <line x1="10" y1="10" x2="70" y2="30"/> | |
polyline | <polyline points="0,0 30,0 15,30"/> | |
polygon | <polygon points="0,0 50,0 25,50"/> | |
path | <path d="M50,50 100,50 75,75 Z"/> |
rename | rename the current object |
---|---|
remove | remove the current object (and all subgroups) |
insert | add an empty object into the current object |
load | load an existing object into the current object |
<line x1="100" y1="100" x2="300" y2="100" joint="10 30 0 0" mill="-10" style="fill:none;stroke:black;" />
operation | example code |
---|---|
translate | translate(20, 30) |
rotate | rotate(15) |
scale | scale(-1,0) |
'translate(20, 30) rotate({angle})'
render | recalculate the results of changes in the code, transform value or parameters |
---|---|
export | save the design as a pure SVG file, i.e. without parameters so that it can be fed to a laser cutter, cnc-mill etc. Don't forget to also save the parametric design too, if you want to work on it later on. To do this, go to 'project settings' and click 'save' |