Skip to content

Instantly share code, notes, and snippets.

@nkhine
nkhine / README.md
Created July 10, 2012 07:16 — forked from mbostock/.block
Superformula Tweening (Christophe Viau)

Christophe Viau implemented a new shape type for D3.js based on superformulas. One nice property of these shapes is that you can easily tween between two shapes by simply interpolating the control points. Click on the blue shapes to try it!

@nkhine
nkhine / demo.js
Created July 9, 2012 11:59 — forked from syntagmatic/demo.js
Projection Demo
// demo.js
//
// Adapted by Kai Chang and Rich Morin from http://bl.ocks.org/1653763
window.onload = function() {
var w = $('#chart').width(),
h = (w * 0.45);
proj = {