Skip to content

Instantly share code, notes, and snippets.

@xijo
Created February 15, 2019 00:06
Show Gist options
  • Save xijo/3f526f757346de1560bc7c84249aaac2 to your computer and use it in GitHub Desktop.
Save xijo/3f526f757346de1560bc7c84249aaac2 to your computer and use it in GitHub Desktop.
SVG rubiks cube top view
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 57 57" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:1.5;">
<g>
<rect id="face-0-0" x="7.087" y="35.433" width="14.173" height="14.173" style="fill:#5c5c5c;stroke:#000;stroke-width:4.17px;" />
<rect id="face-0-1" x="7.087" y="21.26" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-0-2" x="7.087" y="7.087" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-1-0" x="21.26" y="35.433" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-1-1" x="21.26" y="21.26" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-1-2" x="21.26" y="7.087" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-2-0" x="35.433" y="35.433" width="14.173" height="14.173" style="fill:#5c5c5c;stroke:#000;stroke-width:4.17px;" />
<rect id="face-2-1" x="35.433" y="21.26" width="14.173" height="14.173" style="fill:#fecf0f;stroke:#000;stroke-width:4.17px;" />
<rect id="face-2-2" x="35.433" y="7.087" width="14.173" height="14.173" style="fill:#5c5c5c;stroke:#000;stroke-width:4.17px;" />
<path id="top-0" d="M7.563,1.446l13.89,0l-0.193,5.641l-14.173,0l0.476,-5.641Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<rect id="top-1" x="21.26" y="1.446" width="14.173" height="5.64" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;" />
<path id="top-2" d="M49.13,1.446l-13.89,0l0.193,5.641l14.173,0l-0.476,-5.641Z" style="fill:#fecf0f;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<path id="bottom-0" d="M7.563,55.247l13.89,0l-0.193,-5.641l-14.173,0l0.476,5.641Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<rect id="bottom-1" x="21.26" y="49.606" width="14.173" height="5.64" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;" />
<path id="bottom-2" d="M49.13,55.247l-13.89,0l0.193,-5.641l14.173,0l-0.476,5.641Z" style="fill:#fecf0f;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<path id="left-0" d="M1.446,7.563l0,13.89l5.641,-0.193l0,-14.173l-5.641,0.476Z" style="fill:#fecf0f;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<path id="left-1" d="M1.446,21.26l0,14.173l5.641,0l0,-14.173l-5.641,0Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;" />
<path id="left-2" d="M1.446,49.13l0,-13.89l5.641,0.193l0,14.173l-5.641,-0.476Z" style="fill:#fecf0f;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<path id="right-0" d="M55.247,7.563l0,13.89l-5.641,-0.193l0,-14.173l5.641,0.476Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
<path id="right-1" d="M55.247,35.433l0,-14.173l-5.641,0l0,14.173l5.641,0Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;" />
<path id="right-2" d="M55.247,49.13l0,-13.89l-5.641,0.193l0,14.173l5.641,-0.476Z" style="fill:#5c5c5c;stroke:#000;stroke-width:2.08px;stroke-linejoin:round;" />
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment