[ Launch: Pattern grid - hash ] 4646958 by roundrobin
[ Launch: Pattern grid - hash ] 4646953 by roundrobin
[ Launch: Tributary inlet ] 4646912 by roundrobin
-
-
Save roundrobin/4646958 to your computer and use it in GitHub Desktop.
Pattern grid - cross
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
{"description":"Pattern grid - cross","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"fullscreen":false,"thumbnail":"http://i.imgur.com/WfQuKDA.png"} |
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 defs = d3.select('svg').append('defs') | |
var pattern = defs.append('pattern') | |
.attr('id','pattern1') | |
.attr('pattermTransform','') | |
.attr('height',100) | |
.attr('width',100) | |
.attr('patternUnits','userSpaceOnUse') | |
pattern.append('svg:line') | |
.attr("stroke","black") | |
.attr("stroke-width",3) | |
.attr("fill","none") | |
.attr("x1",0) | |
.attr("x2",100) | |
.attr("y1",100) | |
.attr("y2",0); | |
pattern.append('svg:line') | |
.attr("stroke","black") | |
.attr("stroke-width",3) | |
.attr("fill","none") | |
.attr("x1",100) | |
.attr("x2",00) | |
.attr("y1",100) | |
.attr("y2",0); | |
pattern.append('svg:line') | |
.attr("stroke","black") | |
.attr("stroke-width",3) | |
.attr("fill","none") | |
.attr("x1",0) | |
.attr("x2",0) | |
.attr("y1",100) | |
.attr("y2",0); | |
pattern.append('svg:line') | |
.attr("stroke","black") | |
.attr("stroke-width",3) | |
.attr("fill","none") | |
.attr("x1",0) | |
.attr("x2",1000) | |
.attr("y1",0) | |
.attr("y2",0); | |
d3.select('svg').append('rect') | |
.attr('height',tributary.sh) | |
.attr('width',tributary.sw) | |
.attr('fill','url(#pattern1)') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment