Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created July 20, 2012 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roundrobin/3149453 to your computer and use it in GitHub Desktop.
Save roundrobin/3149453 to your computer and use it in GitHub Desktop.
just another inlet to tributary
var pathWay = [[403,167],[192,171],[141,285],[197,406],[411,379],[381,236]];
var drawing = false;
var path = g.append('path')
.attr('stroke','blue')
.attr('stroke-width',5)
.attr('fill',"#000000")
.attr('id','path')
.attr('fill-opacity','0.5')
.attr('class','drawit')
.attr('transform','scale(1)')
drawCharacter(pathWay,path);
g.on('click',function(){
});
function drawCharacter(pathArray,path){
var curve = '';
for( i in pathArray){
}
}
function createCircle(pointD,color){
}
var defs = d3.select('svg').append('defs')
addGradient("#363636", "#5B6B65", 46, 'g3201')
addGradient("#5B6B65", "#363636", 46, 'g3202')
addGradient("#FFF368", "#418041", 46, 'g3203')
addGradient("#0085FF", "#1073A2", 46, 'g3204')
function addGradient(color1,color2,stopPX,id){
var gradient = defs.append('linearGradient')
.attr('id',id)
.attr('gradientUnits','userSpaceOnUse')
.attr('x1','0%')
.attr('x2','0%')
.attr('y1','0%')
.attr('y2',stopPX)
gradient.append('stop').attr('stop-color',color1).attr('offset','0')
gradient.append('stop').attr('stop-color',color2).attr('offset','1')
}
function getLine(line){
return tribView.code_editor.getLine(line);
}
function setLine(line,content){
return tribView.code_editor.setLine(line,content);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment