Created
April 8, 2015 20:47
-
-
Save aaizemberg/f3dfc7ecf4d23724466f to your computer and use it in GitHub Desktop.
SVG lines with transform/rotate
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>SVG lines with transform/rotate</title> | |
</head> | |
<body> | |
<svg width="200" height="200"> | |
<rect x="1" y="1" width="199" height="199" fill="none" stroke="grey" stroke-width="1" /> | |
<g stroke="steelblue" stroke-width="12" stroke-linecap="round"> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(0 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(180 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(45 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(-45 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(90 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(-90 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(135 100 100)" /> | |
<line x1="100" y1="100" x2="150" y2="100" transform="rotate(-135 100 100)" /> | |
</g> | |
</svg> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment