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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by jsxcad -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<svg baseProfile="tiny" height="14.312mm" width="25.043599999999994mm" viewBox="0 0 25.043599999999994 14.312" version="1.1" stroke="black" stroke-width=".1" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="black" stroke="none" d="M6.55522 10.16639 L6.34805 10.62538 L6.05101 11.02601 L5.6734 11.36102 L5.22449 11.62311 L4.71357 11.80501 L4.1499 11.89945 L3.8512 11.9116 L3.54806 11.89945 L2.97715 11.80501 L2.4609 11.62311 L2.00828 11.36102 L1.6283 11.02601 L1.32992 10.62538 L1.12214 10.16639 L1.01395 9.65632 L1 9.3844 L1.01395 9.11027 L1.12214 8.59657 L1.32992 8.13492 L1.6283 7.73243 L2.00828 7.39624 L2.4609 7.13347 L2.97715 6.95127 L3.54806 6.85675 L3.8512 6.8446 L4.1499 6.85675 L4.71357 6.95127 L5.22449 7.13347 L5.6734 7.39624 L6.05101 7.73243 L6.34805 8.13492 L6.55522 8.59657 L6.66326 9.11027 L6.6772 9.3844 L6.66326 9.65632 z M5.66229 9.97259 L5.73536 9.59075 L5.7448 9.3844 L5.73536 9.17819 L5.66229 8.79737 L5.52242 8.46135 L5.32228 8.17335 L5.06841 7.93656 L4.76736 7.75419 L4.24161 7.58969 L3.8512 7.5574 L3.46084 7.58969 L2.93333 7.75419 L2.63034 7.93656 L2.3743 8.17335 L2.17205 8.46135 L2.03046 8.79737 L1.95638 9.17819 L1.9468 9.3844 L1.95638 9.59075 L2.03046 9.97259 L2.17205 10.31037 L2.3743 10.60058 L2.63034 10.83972 L2.93333 11.02429 L3.46084 11.19117 L3.8512 11.224 L4.04985 11.21572 L4.42566 11.15079 L4.76736 11.02429 L5.06841 10.83972 L5.32228 10.60058 L5.52242 10.31037 z M9.8524 8.6716 L12.17696 8.71398 L12.3065 8.74385 L12.3544 8.776 L12.41833 8.8372 L12.50298 9.07773 L12.5092 9.2422 L12.49547 9.30897 L12.39985 9.41888 L12.3274 9.4492 L12.10406 9.48312 L11.49133 9.51653 L11.188 9.514 L10.83717 9.30593 L10.7722 9.2674 L9.8524 9.2296 L9.8524 12.0412 L9.892 12.7144 L9.88398 12.80426 L9.80923 12.93538 L9.7354 12.9736 L9.38519 13.09052 L8.49104 13.27507 L8.0902 13.312 L8.02571 13.30719 L7.96085 13.27327 L7.948 13.2472 L7.8436 12.9358 L8.17398 12.80474 L8.73283 12.47106 L8.9326 12.2752 L8.9326 7.7392 L8.93735 7.2467 L8.97588 6.10173 L9.01 5.6386 L9.5536 5.6386 L9.67698 6.15618 L9.83128 7.4087 L9.8524 8.0488 z M18.59656 11.16664 L18.13557 11.44157 L17.61009 11.63155 L17.02938 11.7298 L16.7212 11.7424 L16.40845 11.7298 L15.81946 11.63155 L15.28689 11.44157 L14.82 11.16664 L14.42804 10.81357 L14.12028 10.38913 L13.90597 9.90012 L13.79438 9.35334 L13.78 9.0604 L13.79438 8.76968 L13.90597 8.2247 L14.12028 7.73471 L14.42804 7.30736 L14.82 6.95026 L15.28689 6.67107 L15.81946 6.47741 L16.40845 6.37692 L16.7212 6.364 L17.1253 6.38674 L17.87089 6.56172 L18.51389 6.89407 L19.03133 7.36538 L19.2358 7.6474 L19.41009 7.52413 L19.81267 7.29581 L20.0386 7.1938 L20.23564 7.25936 L20.65876 7.3601 L20.8558 7.3882 L21.11753 7.40578 L21.84552 7.42541 L22.2166 7.4278 L22.2166 6.2614 L22.21938 5.73251 L22.24925 4.50395 L22.2814 4.0186 L22.825 4.0186 L22.95567 4.56546 L23.11508 5.89274 L23.1364 6.5854 L23.1364 12.0412 L23.1616 12.7144 L23.15387 12.80426 L23.08035 12.93538 L23.0068 12.9736 L22.66368 13.09052 L21.76953 13.27507 L21.3616 13.312 L21.29708 13.30719 L21.23149 13.27327 L21.2176 13.2472 L21.115 12.9358 L21.4509 12.80474 L22.01132 12.47106 L22.2166 12.2752 L22.2166 10.81 L21.75226 10.78514 L20.83302 10.76039 L20.4922 10.7578 L20.24127 10.76281 L19.72523 10.80184 L19.4824 10.8352 L19.40478 10.66257 L19.42368 10.60036 L19.64479 10.43102 L20.09581 10.16062 L20.35 10.045 L20.54704 10.11056 L20.97016 10.2113 L21.1672 10.2394 L21.36382 10.24893 L21.91772 10.26395 L22.2166 10.2664 L22.2166 7.9714 L21.6836 7.94533 L20.58318 7.91141 L20.1808 7.9066 L19.99051 7.90899 L19.58899 7.92862 L19.3906 7.9462 L19.49323 8.20585 L19.61006 8.7643 L19.6246 9.0604 L19.61037 9.35334 L19.49996 9.90012 L19.28801 10.38913 L18.98379 10.81357 z M17.318 10.97897 L17.67498 10.84414 L17.99071 10.64641 L18.25788 10.38886 L18.46915 10.07453 L18.61722 9.70649 L18.69477 9.28779 L18.7048 9.0604 L18.69477 8.83523 L18.61722 8.42015 L18.46915 8.05477 L18.25788 7.7423 L17.99071 7.48593 L17.67498 7.28888 L17.318 7.15435 L16.92709 7.08555 L16.7212 7.0768 L16.51323 7.08555 L16.11972 7.15435 L15.76183 7.28888 L15.44645 7.48593 L15.18045 7.7423 L14.97071 8.05477 L14.8241 8.42015 L14.7475 8.83523 L14.7376 9.0604 L14.7475 9.28779 L14.8241 9.70649 L14.97071 10.07453 L15.18045 10.38886 L15.44645 10.64641 L15.76183 10.84414 L16.11972 10.97897 L16.51323 11.04785 L16.7212 11.0566 L16.92709 11.04785 z M23.86186 1.42145 L23.9014 1.4536 L23.95096 1.51891 L24.03049 1.74672 L24.0436 1.9072 L24.03007 1.97684 L23.93957 2.06819 L23.8744 2.0872 L23.62758 2.13085 L22.96923 2.1844 L22.6576 2.1916 L22.30677 1.99416 L22.2418 1.9576 L21.41813 1.93397 L19.14912 1.91507 L18.289 1.9198 L18.14042 1.93949 L17.98297 2.10509 L17.965 2.2564 L17.965 3.9934 L17.9776 4.564 L17.9677 4.6587 L17.8804 4.77992 L17.7976 4.8088 L17.48803 4.86246 L16.67448 4.92929 L16.3072 4.9384 L16.25331 4.93365 L16.18064 4.89512 L16.1632 4.861 L16.0984 4.5766 L16.36112 4.50066 L16.83727 4.30626 L17.02 4.1878 L17.02 2.3734 L17.03441 2.12528 L17.1584 1.74008 L17.42869 1.49393 L17.86858 1.37603 L18.1594 1.3618 L23.7196 1.3888 L23.77332 1.39158 z M9.73166 4.252 L9.52615 4.69091 L9.23087 5.07255 L8.85458 5.39055 L8.40607 5.63853 L7.89411 5.81014 L7.32748 5.899 L7.0264 5.9104 L6.72786 5.899 L6.16536 5.81014 L5.65645 5.63853 L5.21006 5.39055 L4.83513 5.07255 L4.54061 4.69091 L4.33544 4.252 L4.22858 3.7622 L4.2148 3.5002 L4.22858 3.23096 L4.33544 2.72605 L4.54061 2.27187 L4.83513 1.87555 L5.21006 1.54425 L5.65645 1.28513 L6.16536 1.10533 L6.72786 1.012 L7.0264 1 L7.32748 1.012 L7.89411 1.10533 L8.40607 1.28513 L8.85458 1.54425 L9.23087 1.87555 L9.52615 2.27187 L9.73166 2.72605 L9.83862 3.23096 L9.8524 3.5002 L9.83862 3.7622 z M8.78903 4.06605 L8.85881 3.69931 L8.8678 3.5002 L8.85881 3.30346 L8.78903 2.9397 L8.65498 2.61824 L8.46244 2.34231 L8.21715 2.11514 L7.92487 1.93995 L7.41095 1.7817 L7.0264 1.7506 L6.64299 1.7817 L6.13207 1.93995 L5.84226 2.11514 L5.59949 2.34231 L5.40924 2.61824 L5.277 2.9397 L5.20825 3.30346 L5.1994 3.5002 L5.20825 3.69931 L5.277 4.06605 L5.40924 4.38854 L5.59949 4.66407 L5.84226 4.88992 L6.13207 5.06335 L6.64299 5.21929 L7.0264 5.2498 L7.41095 5.21929 L7.92487 5.06335 L8.21715 4.88992 L8.46244 4.66407 L8.65498 4.38854 z"/>
</svg>
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment