#SVG Symmetry Thing I'm going to try to make something inspired by the works of Atticus Bones.
Last active
July 9, 2017 05:30
-
-
Save AdmiralPotato/5ccb0b139babfb20717e91fc35273842 to your computer and use it in GitHub Desktop.
SVG Symmetry Thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> | |
<link rel="stylesheet" href="./styles.css" /> | |
<title>SVG Symmetry Thing</title> | |
</head> | |
<body> | |
<svg id="rootSVG" viewBox="-64 -64 128 128"> | |
<defs> | |
<line id="line" class="stroke" x1="4" x2="6" y1="0" y2="0" /> | |
<g id="twoLines"> | |
<line class="stroke" x1="8" x2="10" y1="0" y2="0" /> | |
<line class="stroke" x1="6" x2="6" y1="2" y2="-2" /> | |
</g> | |
</defs> | |
<g transform="translate(-16, 0)"> | |
<use xlink:href="#line" transform="rotate( 0)" /> | |
<use xlink:href="#line" transform="rotate( 60)" /> | |
<use xlink:href="#line" transform="rotate(120)" /> | |
<use xlink:href="#line" transform="rotate(180)" /> | |
<use xlink:href="#line" transform="rotate(240)" /> | |
<use xlink:href="#line" transform="rotate(300)" /> | |
</g> | |
<g transform="translate(16, 0)"> | |
<use xlink:href="#twoLines" transform="rotate( 0)" /> | |
<use xlink:href="#twoLines" transform="rotate( 60)" /> | |
<use xlink:href="#twoLines" transform="rotate(120)" /> | |
<use xlink:href="#twoLines" transform="rotate(180)" /> | |
<use xlink:href="#twoLines" transform="rotate(240)" /> | |
<use xlink:href="#twoLines" transform="rotate(300)" /> | |
</g> | |
</svg> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; | |
vertical-align: inherit; | |
font-size: inherit; | |
line-height: inherit; | |
font-weight: inherit; | |
font-style: inherit; | |
font-family: inherit; | |
text-align: inherit; | |
text-decoration: inherit; | |
color: inherit; | |
background-color: transparent; | |
} | |
html, body{ | |
height: 100%; | |
} | |
html { | |
font-size: 16px; | |
-webkit-text-size-adjust: 100%; | |
} | |
body { | |
background-color: #000; | |
font-size: 1rem; | |
line-height: 1.5rem; | |
font-weight: 400; | |
font-style: normal; | |
vertical-align: top; | |
font-family: sans-serif; | |
text-align: left; | |
text-decoration: none; | |
color: #ccc; | |
} | |
svg { | |
display: block; | |
width: 100%; | |
height: 100%; | |
background-color: #fff; | |
} | |
.stroke{ | |
stroke-width: 1; | |
stroke-linecap: round; | |
stroke-linejoin: round; | |
stroke: #000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment