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

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