Skip to main content
Glama
convertLab65ToXyz65.js493 B
import { k, e } from '../xyz65/constants.js'; import { D65 } from '../constants.js'; let fn = v => (Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k); const convertLab65ToXyz65 = ({ l, a, b, alpha }) => { let fy = (l + 16) / 116; let fx = a / 500 + fy; let fz = fy - b / 200; let res = { mode: 'xyz65', x: fn(fx) * D65.X, y: fn(fy) * D65.Y, z: fn(fz) * D65.Z }; if (alpha !== undefined) { res.alpha = alpha; } return res; }; export default convertLab65ToXyz65;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatheusgVentura/Project-One'

If you have feedback or need assistance with the MCP directory API, please join our Discord server