Skip to content

Instantly share code, notes, and snippets.

@pentacular
Created September 11, 2020 10:02
Show Gist options
  • Save pentacular/9045e0b9a8842fb6159c595119fcacd2 to your computer and use it in GitHub Desktop.
Save pentacular/9045e0b9a8842fb6159c595119fcacd2 to your computer and use it in GitHub Desktop.
multi2 #jsxcad
import 'http://www.foo.com';
Circle(10).color('red').with(Triangle(5).color('green')).item().topView();
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="rockets.svg"
xml:space="preserve"
style="enable-background:new 0 0 1828 2100;"
viewBox="0 0 1828 2100"
y="0px"
x="0px"
id="_x30_"
version="1.1"><metadata
id="metadata18"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs16" /><sodipodi:namedview
inkscape:current-layer="_x30_"
inkscape:window-maximized="0"
inkscape:window-y="0"
inkscape:window-x="0"
inkscape:cy="1050"
inkscape:cx="914"
inkscape:zoom="0.4047619"
showgrid="false"
id="namedview14"
inkscape:window-height="480"
inkscape:window-width="731"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff" />
<path
style="stroke-width:1"
d="m 1674.3,630.7 z m -110.7,-235 c -5.7,-17 -6.1,-34 -1.3,-51 4.6,-16.3 11.9,-24.6 21.8,-25 -1,-20.5 -2.1,-41.1 -3.4,-61.6 -0.9,-14.7 -3.9,-29.1 -8.8,-43 -21,-59 -49.5,-114.1 -85.3,-165.4 -3.6,-5.2 -8.6,-7.8 -14.9,-7.8 -6.3,0 -11.3,2.6 -14.9,7.8 -35.9,51.3 -64.3,106.4 -85.3,165.4 -4.9,13.9 -7.9,28.2 -8.8,43 -1.3,20.5 -2.4,41.1 -3.4,61.6 9.9,0.4 17.2,8.7 21.8,25 4.8,17 4.4,34 -1.3,51 -5.7,17 -13.7,25.3 -24.1,25 -2.8,122.5 0,244.8 8.3,367 33.1,0 66.2,0 99.2,0 0,-52.3 0,-104.7 0,-157 1.9,-24.5 4.8,-48.9 8.5,-73.2 3.7,24.3 6.5,48.7 8.5,73.2 0,52.3 0,104.7 0,157 33.1,0 66.2,0 99.2,0 8.3,-122.2 11.1,-244.6 8.3,-367 -10.4,0.3 -18.5,-8 -24.1,-25 z M 1373.6,256 c -1.6,-0.2 -2.8,-1.5 -2.7,-3.1 0.3,-4.3 0.5,-8.6 0.8,-12.9 0,0 0,-0.1 0,-0.1 0.2,-1.6 1.6,-2.8 3.3,-2.6 64.3,6.6 129,6.6 193.3,0 0,0 0.1,0 0.1,0 1.6,-0.1 3,1.2 3.1,2.8 0.3,4.3 0.5,8.6 0.8,12.9 0.1,1.6 -1.1,3 -2.7,3.1 -65.1,6.5 -130.8,6.5 -196,-0.1 z m 98,164.7 c -27.9,0 -50.5,-22.6 -50.5,-50.5 0,-27.9 22.6,-50.5 50.5,-50.5 27.9,0 50.5,22.6 50.5,50.5 0,27.8 -22.6,50.5 -50.5,50.5 z m 74.2,429.6 c -5.8,-10.1 -14.2,-18.7 -24.1,-24.8 -11.7,-7.4 -25.3,-11.4 -39,-12.9 -13.7,-1.5 -27.5,-0.4 -40.7,3.5 -10.9,3.2 -21.2,8.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.6 12.2,-19.7 19.9,-28.4 7.1,-8 14.5,-15.8 20.8,-24.5 5.6,-7.7 10.3,-16.2 13,-25.4 2.1,-7.2 2.9,-14.9 1.7,-22.3 -1,-6 -3.3,-11.8 -6.4,-17 -1.5,-2.4 -3.1,-4.8 -4.8,-7 -1.6,-2.2 -3.2,-4.3 -4.8,-6.4 2.5,1.5 5.1,3.1 7.5,4.8 3.4,2.4 6.7,5 9.4,8.2 1.8,2.2 3.4,4.6 4.7,7.2 1.9,3.6 3.4,7.5 4.4,11.5 0.8,3.1 1.3,6.2 1.7,9.3 0.1,1.1 0.3,2.1 0.4,3.2 1.6,-4 3.2,-8 4.4,-12 2.6,-8.5 3.9,-17.4 3.6,-26.3 -0.3,-11.5 -3.4,-22.8 -9,-32.5 z M 1269,630.7 v 227.4 c 21.5,-29.5 49.8,-53.4 82.5,-69.6 -5.3,-76.9 -8.3,-154 -9.2,-231.1 -26.5,22.3 -51,46.8 -73.3,73.3 z"
class="st0"
id="LWPOLYLINE_7_" />
<path
style="stroke-width:1"
d="m 74.2,429.6 c -5.8,-10.1 -14.2,-18.7 -24.1,-24.8 -11.7,-7.4 -25.3,-11.4 -39,-12.9 -13.7,-1.5 -27.5,-0.4 -40.7,3.5 -10.9,3.2 -21.2,8.4 -29.9,15.7 -13.4,11.4 -22.8,28 -26.2,45.1 -3.6,18.6 -0.1,37.8 10.1,54.9 4.4,7.4 10,14.4 14.8,21.4 2.9,4.2 5.4,8.4 7.6,12.8 2,4.1 3.7,8.4 4.2,12.9 0.4,3.6 0.1,7.3 -1,10.7 -0.7,2.2 -1.8,4.3 -2.9,6.4 1.6,-0.9 3.2,-1.8 4.6,-2.9 3.9,-2.9 6.6,-7.3 8.4,-11.9 1.8,-4.6 2.6,-9.5 2.6,-14.3 -0.1,-7 -2.1,-13.9 -4.3,-20.7 -1.9,-5.8 -3.9,-11.6 -4.3,-17.5 -0.5,-7 1,-14.2 3.8,-20.8 1.6,-3.7 3.5,-7.2 5.9,-10.4 2.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.3,-11.5 -3.4,-22.8 -9,-32.5 z M 1269,630.7 v 227.4 c 21.5,-29.5 49.8,-53.4 82.5,-69.6 -5.3,-76.9 -8.3,-154 -9.2,-231.1 -26.5,22.3 -51,46.8 -73.3,73.3 z"
class="st0"
id="LWPOLYLINE_7_" />
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment