Skip to content

Instantly share code, notes, and snippets.

@esmevane
Created December 6, 2012 02:30
Show Gist options
  • Save esmevane/4221365 to your computer and use it in GitHub Desktop.
Save esmevane/4221365 to your computer and use it in GitHub Desktop.
[d3 js] Example snippet to build a random Hcl transitioned color
var randomHcl;
randomHcl = function() {
d3.scale.linear().domain(d3.range(100)).interpolate(d3.interpolateHcl).range(['blue', 'green'])
};
randomHcl(30);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment