Skip to main content
Glama
convertLuvToLchuv.js365 B
import normalizeHue from '../util/normalizeHue.js'; const convertLuvToLchuv = ({ l, u, v, alpha }) => { let c = Math.sqrt(u * u + v * v); let res = { mode: 'lchuv', l: l, c: c }; if (c) { res.h = normalizeHue((Math.atan2(v, u) * 180) / Math.PI); } if (alpha !== undefined) { res.alpha = alpha; } return res; }; export default convertLuvToLchuv;

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