MCPcopy Index your code
hub / github.com/codeaashu/claude-code / h

Function h

web/lib/ansi-to-html.ts:44–44  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

42 const i = n - 16;
43 const b = i % 6, g = Math.floor(i / 6) % 6, r = Math.floor(i / 36);
44 const h = (v: number) => (v === 0 ? 0 : 55 + v * 40).toString(16).padStart(2, "0");
45 return `#${h(r)}${h(g)}${h(b)}`;
46 }
47 const gray = (n - 232) * 10 + 8;

Callers 2

get256ColorFunction · 0.70
dispatchMethod · 0.50

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected