forked from thomasgwatson's block: Sha-banga-bang
Created
September 9, 2015 03:18
-
-
Save howarddd/0fd143451d09b1b973eb to your computer and use it in GitHub Desktop.
Sha-banga-bang
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
</head> | |
<style> | |
body{ | |
margin:0; | |
padding: 0; | |
} | |
</style> | |
<body> | |
<svg width=960 height=500 style="background-color:red"> | |
<rect x=300 y=200 height=100 width=486 stroke="#00ef00" stroke-width=17 stroke-dasharray="34 33 21 11 45 66 23"> | |
</rect> | |
<rect x=100 y=300 height=100 width=486 fill="#ffd800"> | |
</rect> | |
<rect x=100 y=100 height=486 width=100 stroke="#00ef00" stroke-width=17 stroke-dasharray="34 33 21 11 45 66 23"> | |
</rect> | |
<circle r=35 cx=450 cy=250 stroke="#00d8ff" stroke-width=12> | |
</circle> | |
</svg> | |
<script> | |
console.log("you are now rocking with d3", d3); | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment