MCPcopy Create free account
hub / github.com/codeaashu/claude-code / a2

Function a2

src/server/web/public/terminal.js:2517–2522  ·  view source on GitHub ↗
(e4, t4, i3)

Source from the content-addressed store, hash-verified

2515 return (o2 << 24 | a3 << 16 | h2 << 8 | 255) >>> 0;
2516 }
2517 function a2(e4, t4, i3) {
2518 const s3 = e4 >> 24 & 255, r2 = e4 >> 16 & 255, n2 = e4 >> 8 & 255;
2519 let o2 = t4 >> 24 & 255, a3 = t4 >> 16 & 255, h2 = t4 >> 8 & 255, l2 = _(c.relativeLuminance2(o2, a3, h2), c.relativeLuminance2(s3, r2, n2));
2520 for (; l2 < i3 && (o2 < 255 || a3 < 255 || h2 < 255); ) o2 = Math.min(255, o2 + Math.ceil(0.1 * (255 - o2))), a3 = Math.min(255, a3 + Math.ceil(0.1 * (255 - a3))), h2 = Math.min(255, h2 + Math.ceil(0.1 * (255 - h2))), l2 = _(c.relativeLuminance2(o2, a3, h2), c.relativeLuminance2(s3, r2, n2));
2521 return (o2 << 24 | a3 << 16 | h2 << 8 | 255) >>> 0;
2522 }
2523 e3.blend = function(e4, t4) {
2524 if (n = (255 & t4) / 255, 1 === n) return t4;
2525 const a3 = t4 >> 24 & 255, h2 = t4 >> 16 & 255, c2 = t4 >> 8 & 255, l2 = e4 >> 24 & 255, d2 = e4 >> 16 & 255, _2 = e4 >> 8 & 255;

Calls 1

_Function · 0.85

Tested by

no test coverage detected