Skip to main content
Glama
convertLrgbToRgb.js387 B
const fn = c => { const abs = Math.abs(c); if (abs > 0.0031308) { return (Math.sign(c) || 1) * (1.055 * Math.pow(abs, 1 / 2.4) - 0.055); } return c * 12.92; }; const convertLrgbToRgb = ({ r, g, b, alpha }, mode = 'rgb') => { let res = { mode, r: fn(r), g: fn(g), b: fn(b) }; if (alpha !== undefined) res.alpha = alpha; return res; }; export default convertLrgbToRgb;

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