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

Function pB

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

Source from the content-addressed store, hash-verified

28061 return n[n.length - 1];
28062 }
28063 function pB(t) {
28064 const e = t / 255;
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);

Callers 1

gBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected