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

Function toChannel

web/lib/ink-compat/color-mapping.ts:57–57  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

55 const g = Math.floor(i / 6) % 6
56 const r = Math.floor(i / 36)
57 const toChannel = (v: number) => (v === 0 ? 0 : v * 40 + 55)
58 const rh = toChannel(r).toString(16).padStart(2, '0')
59 const gh = toChannel(g).toString(16).padStart(2, '0')
60 const bh = toChannel(b).toString(16).padStart(2, '0')

Callers 1

ansi256ToHexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected