v1.0 with SW PWA enabled
This commit is contained in:
16
frontend/node_modules/d3-interpolate/src/lab.js
generated
vendored
Normal file
16
frontend/node_modules/d3-interpolate/src/lab.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import {lab as colorLab} from "d3-color";
|
||||
import color from "./color.js";
|
||||
|
||||
export default function lab(start, end) {
|
||||
var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),
|
||||
a = color(start.a, end.a),
|
||||
b = color(start.b, end.b),
|
||||
opacity = color(start.opacity, end.opacity);
|
||||
return function(t) {
|
||||
start.l = l(t);
|
||||
start.a = a(t);
|
||||
start.b = b(t);
|
||||
start.opacity = opacity(t);
|
||||
return start + "";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user