Add MTG tokens

This commit is contained in:
Correl Roush 2023-04-18 14:24:14 -04:00
parent 6a707e10d2
commit 27ca29ea51
3 changed files with 133 additions and 0 deletions

51
mtg_token.scad Normal file
View File

@ -0,0 +1,51 @@
$fn = 50;
mode = "cat"; // ["cat", "dog"]
base_y = 1;
emboss_y = 1;
module cat() {
translate([20,10,base_y]) {
linear_extrude(emboss_y)
text("Cat", font="Beleren", halign="center");
}
translate([20,2,base_y]) {
linear_extrude(emboss_y)
text("2/2", font="Beleren", size=5, halign="center");
}
translate([3,37,base_y])
linear_extrude(emboss_y)
scale(.08)
import("mtg_token/Cat_silhouette.svg");
}
module dog() {
translate([20,10,base_y]) {
linear_extrude(emboss_y)
text("Dog", font="Beleren", halign="center");
}
translate([20,2,base_y]) {
linear_extrude(emboss_y)
text("3/1", font="Beleren", size=5, halign="center");
}
translate([5,41,base_y])
linear_extrude(emboss_y)
scale(.07)
import("mtg_token/Dog_silhouette.svg");
}
hull() {
cube([40, 30, base_y]);
translate([10,40,0])
cylinder(r=10, h=base_y);
translate([30,40,0])
cylinder(r=10, h=base_y);
}
color("white") {
if (mode == "cat") {
cat();
} else {
dog();
}
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.0"
width="400"
height="380"
id="svg2">
<defs
id="defs5" />
<path
d="M 151.34904,307.20455 L 264.34904,307.20455 C 264.34904,291.14096 263.2021,287.95455 236.59904,287.95455 C 240.84904,275.20455 258.12424,244.35808 267.72404,244.35808 C 276.21707,244.35808 286.34904,244.82592 286.34904,264.20455 C 286.34904,286.20455 323.37171,321.67547 332.34904,307.20455 C 345.72769,285.63897 309.34904,292.21514 309.34904,240.20455 C 309.34904,169.05135 350.87417,179.18071 350.87417,139.20455 C 350.87417,119.20455 345.34904,116.50374 345.34904,102.20455 C 345.34904,83.30695 361.99717,84.403577 358.75805,68.734879 C 356.52061,57.911656 354.76962,49.23199 353.46516,36.143889 C 352.53959,26.857305 352.24452,16.959398 342.59855,17.357382 C 331.26505,17.824992 326.96549,37.77419 309.34904,39.204549 C 291.76851,40.631991 276.77834,24.238028 269.97404,26.579549 C 263.22709,28.901334 265.34904,47.204549 269.34904,60.204549 C 275.63588,80.636771 289.34904,107.20455 264.34904,111.20455 C 239.34904,115.20455 196.34904,119.20455 165.34904,160.20455 C 134.34904,201.20455 135.49342,249.3212 123.34904,264.20455 C 82.590696,314.15529 40.823919,293.64625 40.823919,335.20455 C 40.823919,353.81019 72.349045,367.20455 77.349045,361.20455 C 82.349045,355.20455 34.863764,337.32587 87.995492,316.20455 C 133.38711,298.16014 137.43914,294.47663 151.34904,307.20455 z "
style="fill:black;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path1891" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
width="343pt"
height="340pt"
id="svg2632"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="Dog silhouette.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs2634">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 212.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="428.75 : 212.5 : 1"
inkscape:persp3d-origin="214.375 : 141.66667 : 1"
id="perspective2641" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="196.78181"
inkscape:cy="242.24295"
inkscape:document-units="pt"
inkscape:current-layer="layer1"
id="namedview2636"
showgrid="false"
inkscape:window-width="1280"
inkscape:window-height="751"
inkscape:window-x="-4"
inkscape:window-y="-4" />
<metadata
id="metadata2638">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.69295812px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 272.11431,144.54268 L 321.55077,83.800277 L 352.8235,77.515446 L 380.07449,86.549207 L 385.52469,103.0428 L 415.50077,114.03853 L 415.50077,136.02995 L 402.52359,151.34852 L 381.18419,151.34852 L 359.84478,151.34852 L 357.36172,161.81233 L 350.68079,165.88014 L 346.59314,182.37372 L 333.74779,237.74037 L 317.3972,273.47646 L 298.32151,295.4679 L 292.87131,364.19116 C 295.27591,371.24823 298.40141,376.45075 302.08809,380.03666 C 305.77477,383.62258 310.02269,385.5919 314.6721,386.1826 L 318.69383,399.92725 L 315.77101,407.97459 L 305.06834,408.17405 L 277.30087,407.65304 L 260.17013,372.43795 L 257.44502,306.46362 L 246.54463,295.4679 L 221.3704,294.15992 L 202.42655,287.8751 L 189.96586,278.32033 L 164.79165,273.47646 L 153.24294,284.73813 L 132.59614,281.59026 L 115.73986,300.96576 L 96.015836,322.30321 L 91.213954,358.6933 L 94.982837,377.4704 L 107.82822,387.09163 L 120.80538,390.10654 L 123.65691,401.03575 L 117.43198,407.38707 L 91.213954,408.17405 L 70.709793,369.8329 L 66.688061,328.45506 L 63.831131,321.90427 L 43.271873,334.15238 L 34.382369,364.05818 L 34.767023,388.5435 L 49.821,395.73736 L 55.331693,403.33017 L 47.876015,413.53891 L 23.086498,413.6719 L 13.999239,391.68046 L 15.427688,328.98696 L 53.194398,274.26343 L 60.325901,253.96799 L 54.491032,219.28483 L 58.644613,189.04658 L 70.061476,165.4812 L 58.122716,139.63233 L 50.07384,112.4755 L 43.008244,67.506165 L 48.260687,22.536848 L 55.787666,12.328099 L 63.962979,64.557767 L 74.863358,111.28959 L 95.752187,151.21555 L 178.42255,153.11103 L 235.31737,151.7698 L 272.11431,144.54268 z"
id="path3027"
sodipodi:nodetypes="cccccccccccccccccsccccccccccccccccccccccccccccccccccccccccccccccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB