block by mbostock 4004173dfc758f33f8c8

HCL Interpolation

Full Screen

A simple test of interpolateHcl from the d3-color module, animated with timer from the d3-transition module. Note that interpolateHcl chooses the shortest path between two hues, and the change in hue is thus always less than 180°; use interpolateHclLong to take the long path.

index.html

d3.js

d3.min.js

package.json

rollup.config.js