MCPcopy Index your code
hub / github.com/microsoft/SandDance / hcl2lab

Function hcl2lab

docs/app/js/sanddance-app.js:128113–128117  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

128111 this.opacity = +opacity;
128112}
128113function hcl2lab(o) {
128114 if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
128115 var h = o.h * (0, _mathJs.radians);
128116 return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
128117}
128118(0, _defineJsDefault.default)(Hcl, hcl, (0, _defineJs.extend)((0, _colorJs.Color), {
128119 brighter: function(k) {
128120 return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);

Callers 2

labConvertFunction · 0.70
sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected