Created
June 4, 2018 05:27
-
-
Save CharlesAMoss/24ded870a65481c89df10c73e8198843 to your computer and use it in GitHub Desktop.
griddle me this
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
const entry = document.getElementById("entry"); | |
// every journey begins with one step | |
const svg = document.createElement("svg"); | |
svg.setAttribute("width", "100%"); | |
svg.setAttribute("height", "100%"); | |
const g = document.createElement("g"); | |
const box = document.createElement("rect"); | |
box.setAttribute("width", 10); | |
box.setAttribute("height", 10); | |
box.setAttribute("stroke", 1); | |
// box.setAttribute("fill", color); | |
// box.setAttribute("id", identity); | |
g.appendChild(box); | |
svg.appendChild(g); | |
entry.appendChild(svg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment