Based off http://www.husl-colors.org/.
Demo: http://bl.ocks.org/yinshanyang/e90f8830c48f07a2085c
A basic D3 plugin that interpolates though the HUSL and HUSLp color space. For now, the interpolator accepts hex or hsl strings, i.e. #f00
, #ff0000
or hsl(0, 100%, 50%)
npm install d3-interpolate-husl
Alternatively, the good old <script>
still works with d3-interpolate-husl.js
or d3-interpolate-husl.min.js
.