Skip to content

Instantly share code, notes, and snippets.

@srt19170
srt19170 / .block
Created June 12, 2018 15:15 — forked from mbostock/.block
Circle Dragging I
license: gpl-3.0
@srt19170
srt19170 / hdlines.js
Created November 22, 2016 15:23
Hand-Drawn Lines Code (Javascript)
//
// 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)