All examples By author By category About

clhenrick

Colorspaces

Color Spaces & D3.JS

Forked from Kai Chang

Examples

API References

Notes:

Using Lab || HCL color spaces to interpolate between two colors is better than using hsl, for example:

var color = d3.scale.linear()
    .range(["steelblue", "brown"])
    .domain([0, 10])
    .interpolate(d3.interpolateHcl);