MCPcopy Create free account
hub / github.com/microsoft/SandDance / lch

Function lch

docs/app/js/sanddance-app.js:128101–128103  ·  view source on GitHub ↗
(l, c, h, opacity)

Source from the content-addressed store, hash-verified

128099 return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
128100}
128101function lch(l, c, h, opacity) {
128102 return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
128103}
128104function hcl(h, c, l, opacity) {
128105 return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
128106}

Callers

nothing calls this directly

Calls 1

hclConvertFunction · 0.70

Tested by

no test coverage detected