Skip to content

Instantly share code, notes, and snippets.

@aib
Created October 21, 2024 12:22
Show Gist options
  • Save aib/dc60396ec907cfd8b7ac4dde52b7efec to your computer and use it in GitHub Desktop.
Save aib/dc60396ec907cfd8b7ac4dde52b7efec to your computer and use it in GitHub Desktop.
Test image for when working with 2D transformations
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="618"
height="1000"
viewBox="0 0 163.5125 264.58333"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (1:1.2.2+202212051552+b0a8486541)"
sodipodi:docname="orientation_helper.svg"
inkscape:export-filename="orientation_helper.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="0.75187991"
inkscape:cx="109.05997"
inkscape:cy="501.40986"
inkscape:window-width="1920"
inkscape:window-height="1023"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<rect
x="143.41889"
y="644.67968"
width="286.36756"
height="80.408625"
id="rect85765" />
<rect
x="85.58111"
y="437.31007"
width="365.36551"
height="84.640658"
id="rect85683" />
<rect
x="85.110884"
y="347.96715"
width="500.79056"
height="174.92403"
id="rect85677" />
<rect
x="145.11628"
y="145.11628"
width="377.30467"
height="121.50179"
id="rect84111" />
<symbol
id="ForwardAndLeftArrow">
<title
id="title1499">Forward and Left Arrow</title>
<path
d="M 16,16 H 48 L 59,27 H 35 L 58,50 50,58 27,35 V 59 L 16,48 Z"
style="stroke:none"
id="path1501" />
</symbol>
<rect
x="85.581108"
y="437.31006"
width="365.36551"
height="84.640656"
id="rect85683-9" />
<rect
x="85.581108"
y="437.31006"
width="658.63043"
height="112.57065"
id="rect85683-2" />
<rect
x="85.581108"
y="437.31006"
width="463.42481"
height="160.45064"
id="rect85683-2-0" />
<rect
x="85.581108"
y="437.31006"
width="430.60249"
height="160.45064"
id="rect85683-3" />
<rect
x="85.581108"
y="437.31006"
width="588.80544"
height="264.1906"
id="rect85683-3-0" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#000000;stroke-width:0.529167"
id="rect83475"
width="163.5125"
height="264.58334"
x="0"
y="0"
sodipodi:insensitive="true" />
<use
xlink:href="#ForwardAndLeftArrow"
style="fill:#ffffff;fill-opacity:1;stroke:#000000"
id="use84040"
transform="matrix(0.78759689,0,0,0.78759689,-4.1348836,-4.1348836)" />
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,-14.727786,4.2333335)"
id="text84109"
style="font-style:normal;font-weight:normal;font-size:48px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect84111);display:inline;fill:#000000;fill-opacity:1;stroke:none"><tspan
x="145.11719"
y="187.58594"
id="tspan86167"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';fill:#fffffd"
id="tspan86165">TOP LEFT</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,0.26458333,17.391187,-34.64421)"
id="text85681"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683);display:inline;fill:#000000;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86171"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold';fill:#ffffff"
id="tspan86169">NORMAL</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(0,-0.26458333,0.26458333,0,-110.60546,199.86067)"
id="text85681-6"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683-3);display:inline;fill:#ffffff;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86175"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
id="tspan86173">90° CW ⟳</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(0,0.26458333,-0.26458333,0,271.76915,58.624845)"
id="text85681-6-6"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683-3-0);display:inline;fill:#ffffff;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86179"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
id="tspan86177">90° CCW ⟲</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(-0.26458333,0,0,0.26458333,154.88563,-6.2836188)"
id="text85681-7"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683-2);display:inline;fill:#ffffff;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86183"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
id="tspan86181">H-FLIPPED</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(0.26458333,0,0,-0.26458333,10.51202,270.86695)"
id="text85681-7-9"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683-2-0);display:inline;fill:#ffffff;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86187"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
id="tspan86185">V-FLIPPED</tspan></tspan></text>
<text
xml:space="preserve"
transform="matrix(-0.26458333,0,0,-0.26458333,148.05194,299.22754)"
id="text85681-1"
style="font-style:normal;font-weight:normal;font-size:64px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85683-9);display:inline;fill:#ffffff;fill-opacity:1;stroke:none"><tspan
x="85.582031"
y="493.93555"
id="tspan86191"><tspan
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
id="tspan86189">ROTATED</tspan></tspan></text>
<text
xml:space="preserve"
transform="scale(0.26458333)"
id="text85763"
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect85765);display:inline;fill:#000000;fill-opacity:1;stroke:none" />
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment