/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/d3-interpolate/src/lab.js
16 строк
450 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
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 + ""; }; }