Skip to main content
Glama
definition.js1.24 kB
import convertLabToLch from '../lch/convertLabToLch.js'; import convertLchToLab from '../lch/convertLchToLab.js'; import convertLab65ToRgb from '../lab65/convertLab65ToRgb.js'; import convertRgbToLab65 from '../lab65/convertRgbToLab65.js'; import convertDlchToLab65 from '../dlch/convertDlchToLab65.js'; import convertLab65ToDlch from '../dlch/convertLab65ToDlch.js'; import { interpolatorLinear } from '../interpolate/linear.js'; import { fixupAlpha } from '../fixup/alpha.js'; const convertDlabToLab65 = c => convertDlchToLab65(convertLabToLch(c, 'dlch')); const convertLab65ToDlab = c => convertLchToLab(convertLab65ToDlch(c), 'dlab'); const definition = { mode: 'dlab', parse: ['--din99o-lab'], serialize: '--din99o-lab', toMode: { lab65: convertDlabToLab65, rgb: c => convertLab65ToRgb(convertDlabToLab65(c)) }, fromMode: { lab65: convertLab65ToDlab, rgb: c => convertLab65ToDlab(convertRgbToLab65(c)) }, channels: ['l', 'a', 'b', 'alpha'], ranges: { l: [0, 100], a: [-40.09, 45.501], b: [-40.469, 44.344] }, interpolate: { l: interpolatorLinear, a: interpolatorLinear, b: interpolatorLinear, alpha: { use: interpolatorLinear, fixup: fixupAlpha } } }; 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