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
license: gpl-3.0 |
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
// | |
// Draw a line with the given curve, and then resample it | |
// to a new set of points. <step> is the distance to step | |
// along the line when taking a new point. | |
// | |
function drawInterpolate(svg, points, step, curve) { | |
curve = curve || d3.curveCatmullRom.alpha(1.0); | |
step = step || 1; | |
var lineFunc = d3.line() | |
.curve(curve) |