Fix imperfections in spritesheet vector and make it ~maintainable~

This commit is contained in:
Luke Hubmayer-Werner 2020-12-18 20:16:48 +10:30
parent 51ffc9bb48
commit 7789e6e133
1 changed files with 65 additions and 179 deletions

View File

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
@ -15,96 +13,13 @@
viewBox="0 0 512 512"
version="1.1"
id="svg8"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="spritesheet.svg"
inkscape:export-filename="/home/luke/godot/rhythm/spritesheet-512.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs2">
<marker
inkscape:stockid="Arrow1Lstart"
orient="auto"
refY="0.0"
refX="0.0"
id="marker1106"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path843"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
style="fill-rule:evenodd;stroke:#ff0000;stroke-width:1pt;stroke-opacity:1;fill:#ff0000;fill-opacity:1"
transform="scale(0.8) translate(12.5,0)" />
</marker>
<linearGradient
id="linearGradient7190"
osb:paint="solid">
<stop
style="stop-color:#ff0500;stop-opacity:1;"
offset="0"
id="stop7188" />
</linearGradient>
<marker
inkscape:stockid="Arrow1Lend"
orient="auto"
refY="0"
refX="0"
id="marker7186"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path7184"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
style="fill:#ff0101;fill-opacity:1;fill-rule:evenodd;stroke:#ff0101;stroke-width:1.00000003pt;stroke-opacity:1"
transform="matrix(-0.8,0,0,-0.8,-10,0)"
inkscape:connector-curvature="0" />
</marker>
<marker
inkscape:stockid="Arrow1Mstart"
orient="auto"
refY="0"
refX="0"
id="Arrow1Mstart"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path6922"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
style="fill:#ff0101;fill-opacity:1;fill-rule:evenodd;stroke:#ff0101;stroke-width:1.00000003pt;stroke-opacity:1"
transform="matrix(0.4,0,0,0.4,4,0)"
inkscape:connector-curvature="0" />
</marker>
<marker
inkscape:stockid="Arrow1Lend"
orient="auto"
refY="0"
refX="0"
id="Arrow1Lend"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path6919"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
style="fill:#ff0101;fill-opacity:1;fill-rule:evenodd;stroke:#ff0101;stroke-width:1.00000003pt;stroke-opacity:1"
transform="matrix(-0.8,0,0,-0.8,-10,0)"
inkscape:connector-curvature="0" />
</marker>
<marker
inkscape:stockid="Arrow1Lstart"
orient="auto"
refY="0"
refX="0"
id="Arrow1Lstart"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path6916"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
style="fill:#ff0101;fill-opacity:1;fill-rule:evenodd;stroke:#ff0101;stroke-width:1.00000003pt;stroke-opacity:1"
transform="matrix(0.8,0,0,0.8,10,0)"
inkscape:connector-curvature="0" />
</marker>
</defs>
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
@ -112,17 +27,22 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4142136"
inkscape:cx="263.29678"
inkscape:cy="273.27798"
inkscape:zoom="2.0000001"
inkscape:cx="202.85111"
inkscape:cy="232.43051"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:current-layer="layerFill"
showgrid="true"
units="px"
inkscape:measure-start="64,304"
inkscape:measure-end="56,312"
objecttolerance="20"
gridtolerance="10">
gridtolerance="10"
inkscape:document-rotation="0"
inkscape:object-nodes="false"
inkscape:snap-smooth-nodes="false"
inkscape:snap-object-midpoints="true"
inkscape:snap-center="true">
<inkscape:grid
type="xygrid"
id="grid1366"
@ -154,101 +74,31 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:label="Outline"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-20.33332)"
style="opacity:1">
id="layerOutline"
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:44;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke">
<circle
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:44;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
id="path1368"
cy="404.33331"
id="circleO"
cy="384"
cx="128"
r="95.999992" />
r="96" />
<path
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:44;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
d="m 384,308.33332 83.13844,48 v 96 l -83.13844,48 -83.13844,-48 v -96 z"
id="path1878"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccc" />
<path
sodipodi:nodetypes="ccccccc"
inkscape:connector-curvature="0"
id="path1907"
d="m 384,308.33332 83.13844,48 v 96 l -83.13844,48 -83.13844,-48 v -96 z"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:36;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke" />
<circle
r="95.999992"
cx="128"
cy="404.33331"
id="circle8642"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:36;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke" />
<path
sodipodi:type="star"
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:44;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
id="path8644"
sodipodi:sides="5"
sodipodi:cx="384"
sodipodi:cy="148.33331"
sodipodi:r1="96"
sodipodi:r2="48"
sodipodi:arg1="-1.5707963"
sodipodi:arg2="-0.9424778"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 384,52.333313 28.21369,57.167187 63.08774,9.16718 -45.65072,44.49845 10.77667,62.83282 L 384,196.33331 l -56.42739,29.66563 10.77668,-62.83281 -45.65071,-44.49845 63.08773,-9.16718 z"
inkscape:transform-center-y="-9.1671843" />
<path
inkscape:transform-center-y="-9.1671843"
d="m 384,52.333313 28.21369,57.167187 63.08774,9.16718 -45.65072,44.49845 10.77667,62.83282 L 384,196.33331 l -56.42739,29.66563 10.77668,-62.83281 -45.65071,-44.49845 63.08773,-9.16718 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="false"
sodipodi:arg2="-0.9424778"
sodipodi:arg1="-1.5707963"
sodipodi:r2="48"
sodipodi:r1="96"
sodipodi:cy="148.33331"
sodipodi:cx="384"
sodipodi:sides="5"
id="path8646"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:36;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
sodipodi:type="star" />
<path
inkscape:connector-curvature="0"
id="path8659"
style="fill:none;stroke:#000000;stroke-width:44;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 128,244.33332 v -192 m -96,96 96,-96 96,96" />
<path
inkscape:connector-curvature="0"
d="m 128,244.33332 v -192 m -96,96 96,-96 96,96"
style="fill:none;stroke:#ffffff;stroke-width:36;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path8662" />
<circle
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:26;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
id="circle1274"
cy="404.33331"
cx="128"
r="95.999992" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:26;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
d="m 384,308.33332 83.13844,48 v 96 l -83.13844,48 -83.13844,-48 v -96 z"
id="path870"
d="m 384,288 83.13844,48 v 96 L 384,480 300.86156,432 v -96 z"
id="hexagonO"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccc" />
<path
sodipodi:type="star"
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:26;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
id="path874"
id="starO"
sodipodi:sides="5"
sodipodi:cx="384"
sodipodi:cy="148.33331"
sodipodi:cy="128"
sodipodi:r1="96"
sodipodi:r2="48"
sodipodi:arg1="-1.5707963"
@ -256,12 +106,48 @@
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 384,52.333313 28.21369,57.167187 63.08774,9.16718 -45.65072,44.49845 10.77667,62.83282 L 384,196.33331 l -56.42739,29.66563 10.77668,-62.83281 -45.65071,-44.49845 63.08773,-9.16718 z"
d="m 384,32 28.21369,57.167184 63.08774,9.167187 -45.65072,44.498449 10.77667,62.83281 L 384,176 l -56.42739,29.66563 10.77668,-62.83281 -45.65072,-44.498454 63.08774,-9.167182 z"
inkscape:transform-center-y="-9.1671843" />
<path
id="path878"
style="fill:none;stroke:#ff0000;stroke-width:26;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 128,244.33332 v -192 m -96,96 96,-96 96,96"
inkscape:connector-curvature="0" />
inkscape:connector-curvature="0"
id="arrowO"
d="M 128,224 V 32 m -96,96 96,-96 96,96"
style="stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;" />
</g>
<g
inkscape:groupmode="layer"
id="layerOutline2"
inkscape:label="Outline2"
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:36;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke">
<use
xlink:href="#circleO"
id="circleO2" />
<use
xlink:href="#hexagonO"
id="hexagonO2" />
<use
xlink:href="#starO"
id="starO2" />
<use
xlink:href="#arrowO"
id="arrowO2" />
</g>
<g
inkscape:groupmode="layer"
id="layerFill"
inkscape:label="Fill"
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:26;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke">
<use
xlink:href="#circleO"
id="circleF" />
<use
xlink:href="#hexagonO"
id="hexagonF" />
<use
xlink:href="#starO"
id="starF" />
<use
xlink:href="#arrowO"
id="arrowF" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB