Skip to content

Instantly share code, notes, and snippets.

@berdosi
Created September 17, 2019 22:11
Show Gist options
  • Save berdosi/987e3c2948c52891ea412ba48700644c to your computer and use it in GitHub Desktop.
Save berdosi/987e3c2948c52891ea412ba48700644c to your computer and use it in GitHub Desktop.
basic commented picture of an arrow
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" viewBox="0 0 10 10" id="svg819">
<defs>
<!-- isoceles triangle is positioned with its base's center on 0 0 -->
<polygon points="-2,0 2,0 0,4" id="arrowhead" />
</defs>
<g>
<!-- path from (0, 0) to (5, 5) -->
<path d="M 0,0 5,5" style="stroke:#000000" id="arrowspline" />
<!-- move arrowhead to (5, 5):, and rotate with -45 degrees, with origin point being at 5, 5-->
<use xlink:href="#arrowhead" x="5" y="5" transform="rotate(-45, 5, 5)" />
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment