Skip to content

Instantly share code, notes, and snippets.

@openbrian
Created February 10, 2019 00:25
Show Gist options
  • Save openbrian/db9f9066768b7165526586297b4a88bb to your computer and use it in GitHub Desktop.
Save openbrian/db9f9066768b7165526586297b4a88bb to your computer and use it in GitHub Desktop.
Simple SVG with a hole in it, using relative path coordinates
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"
id="svg8"
version="1.1"
viewBox="0 0 210 197"
height="60mm"
width="80mm">
<defs
id="defs2" />
<metadata
id="metadata5">
<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>
<path
style="fill:#e9c6af;fill-rule:evenodd;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 80,10 0,50 -70,0 0,-50 z m -51,31 5,0 0,-5 -5,0 z"
id="path7925" />
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment