source: node_modules/d3-interpolate/src/hcl.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 550 bytes
Line 
1import {hcl as colorHcl} from "d3-color";
2import color, {hue} from "./color.js";
3
4function hcl(hue) {
5 return function(start, end) {
6 var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),
7 c = color(start.c, end.c),
8 l = color(start.l, end.l),
9 opacity = color(start.opacity, end.opacity);
10 return function(t) {
11 start.h = h(t);
12 start.c = c(t);
13 start.l = l(t);
14 start.opacity = opacity(t);
15 return start + "";
16 };
17 }
18}
19
20export default hcl(hue);
21export var hclLong = hcl(color);
Note: See TracBrowser for help on using the repository browser.