No Previous Gist
-
-
Save enjalot/2958196 to your computer and use it in GitHub Desktop.
just another inlet to tributary
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
{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":600,"height":300,"hide":false}} |
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
var textstring = "Tributary!"; | |
var textx = 120; | |
var texty = 314; | |
var fontsize = 253; | |
var squarex = 102; | |
var squarey = 73; | |
var squaresize = 300; | |
var squarefill = "#005A20"; | |
var squareopacity = 0.4608; | |
var circlex = 258; | |
var circley = 457; | |
var circlesize = 120; | |
var circlefill = "#0B4F85"; | |
var circleopacity = 0.56; | |
var circlestroke = "#0585A5"; | |
var circlestrokewidth = 15; | |
var svg = d3.select("svg") | |
var text = svg.append("svg:text") | |
.attr("x", textx) | |
.attr("y", texty) | |
.text(textstring) | |
.attr("class", "letter") | |
.style("font-size", fontsize); | |
var square = svg.append("svg:rect") | |
.attr("x", squarex) | |
.attr("y", squarey) | |
.attr("width", squaresize) | |
.attr("height", squaresize) | |
.style("fill", squarefill) | |
.style("opacity", squareopacity); | |
var circle = svg.append("svg:circle") | |
.attr("cx", circlex) | |
.attr("cy", circley) | |
.attr("r", circlesize) | |
.style("fill", circlefill) | |
.style("opacity", circleopacity) | |
.style("stroke", circlestroke) | |
.style("stroke-width", circlestrokewidth); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment