MCPcopy Create free account
hub / github.com/alignoth/alignoth / Nf

Function Nf

resources/vega.min.js:9376–9391  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

9374 : Math.pow((t + 0.055) / 1.055, 2.4);
9375 }
9376 function Nf(t, e, n, r) {
9377 return 1 === arguments.length
9378 ? (function (t) {
9379 if (t instanceof Of) return new Of(t.h, t.c, t.l, t.opacity);
9380 if ((t instanceof Sf || (t = Cf(t)), 0 === t.a && 0 === t.b))
9381 return new Of(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
9382 var e = Math.atan2(t.b, t.a) * xf;
9383 return new Of(
9384 e < 0 ? e + 360 : e,
9385 Math.sqrt(t.a * t.a + t.b * t.b),
9386 t.l,
9387 t.opacity,
9388 );
9389 })(t)
9390 : new Of(t, e, n, null == r ? 1 : r);
9391 }
9392 function Of(t, e, n, r) {
9393 ((this.h = +t), (this.c = +e), (this.l = +n), (this.opacity = +r));
9394 }

Callers 1

FhFunction · 0.70

Calls 1

CfFunction · 0.70

Tested by

no test coverage detected