Skip to main content
Glama
convertLchToLab.js417 B
/* References: * https://drafts.csswg.org/css-color/#lch-to-lab * https://drafts.csswg.org/css-color/#color-conversion-code */ const convertLchToLab = ({ l, c, h, alpha }, mode = 'lab') => { let res = { mode, l, a: c ? c * Math.cos((h / 180) * Math.PI) : 0, b: c ? c * Math.sin((h / 180) * Math.PI) : 0 }; if (alpha !== undefined) res.alpha = alpha; return res; }; export default convertLchToLab;

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