Skip to main content
Glama
definition.js875 B
import lch from '../lch/definition.js'; import convertLabToLch from '../lch/convertLabToLch.js'; import convertLchToLab from '../lch/convertLchToLab.js'; import convertOklabToRgb from '../oklab/convertOklabToRgb.js'; import convertRgbToOklab from '../oklab/convertRgbToOklab.js'; import parseOklch from './parseOklch.js'; const definition = { ...lch, mode: 'oklch', toMode: { oklab: c => convertLchToLab(c, 'oklab'), rgb: c => convertOklabToRgb(convertLchToLab(c, 'oklab')) }, fromMode: { rgb: c => convertLabToLch(convertRgbToOklab(c), 'oklch'), oklab: c => convertLabToLch(c, 'oklch') }, parse: [parseOklch], serialize: c => `oklch(${c.l !== undefined ? c.l : 'none'} ${ c.c !== undefined ? c.c : 'none' } ${c.h || 0}${c.alpha < 1 ? ` / ${c.alpha}` : ''})`, ranges: { l: [0, 1], c: [0, 0.4], h: [0, 360] } }; export default definition;

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