projectshaped / parametric-svg

[NOT MAINTAINED] Parametric drawings in pure SVG.
http://parametric-svg.js.org
73 stars 5 forks source link

Custom functions #9

Open tomek-he-him opened 9 years ago

tomek-he-him commented 9 years ago
<ref param="add" default="(a, b) => a + b" />
<rect parametric:x="add(3, 5)" />

…
<rect x="8" … />
tomek-he-him commented 9 years ago

They are actually built into mathjs – so they already work with http://npm.im/parametric-svg-patch.