Please sign in to comment.
This allows scale interpolation in HSL space. For example: var fill = d3.scale.linear() .interpolate(d3.interpolateHsl) .domain([0, 100]) .range([d3.hsl(180, .5, 1), d3.hsl(180, .5, 0)]); You could approximate this in previous versions using d3.interpolateString, but the new interpolation method is slightly faster and also provides backwards- compatibility for browsers that only understand RGB.
- Loading branch information...
Showing with 76 additions and 46 deletions.
Oops, something went wrong. Retry.