xyz到实验室
将CIE 1931 XYZ颜色转换为CIE L * a * b *。
安装
npm install --save xyz-to-lab
# or
yarn add xyz-to-lab
用法
import xyzToLab from "xyz-to-lab" ;
xyzToLab ( [ 77 , 92.78 , 13.85 ] ) ; // [97.13824698129729, -21.555908334832285, 94.48248544644461]
您还可以从unpkg使用UMD构建:
< script src =" https://unpkg.com/xyz-to-lab/lib/xyz-to-lab.js " > </ script >
< script src =" https://unpkg.com/xyz-to-lab/lib/xyz-to-l
1