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

Function gB

resources/vega.min.js:28067–28070  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

28065 return e <= 0.03928 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
28066 }
28067 function gB(t) {
28068 const e = of(t);
28069 return 0.2126 * pB(e.r) + 0.7152 * pB(e.g) + 0.0722 * pB(e.b);
28070 }
28071 function mB(t, e) {
28072 return (
28073 t === e ||

Callers 1

vega.min.jsFile · 0.85

Calls 2

pBFunction · 0.85
ofFunction · 0.70

Tested by

no test coverage detected