Packages
Advanced configurable navigation component for Phoenix LiveView with native DaisyUI integration, Tailwind CSS support, permissions filtering, dropdowns, mega menus, and modern responsive design. Optimized for Phoenix 1.8+ and LiveView 1.1+.
Current section
Files
Jump to
Current section
Files
assets/node_modules/culori/src/jab/convertRgbToJab.js
/*
Convert sRGB to JzAzBz.
For achromatic sRGB colors, adjust the equivalent JzAzBz color
to be achromatic as well, insteading of having a very slight chroma.
*/
import convertXyz65ToJab from './convertXyz65ToJab.js';
import convertRgbToXyz65 from '../xyz65/convertRgbToXyz65.js';
const convertRgbToJab = rgb => {
let res = convertXyz65ToJab(convertRgbToXyz65(rgb));
if (rgb.r === rgb.b && rgb.b === rgb.g) {
res.a = res.b = 0;
}
return res;
};
export default convertRgbToJab;