MCPcopy Create free account
hub / github.com/arctic-cli/interface / val

Function val

packages/arctic/src/cli/cmd/tui/context/theme.tsx:317–317  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

315 const r = Math.floor(index / 36)
316
317 const val = (x: number) => (x === 0 ? 0 : x * 40 + 55)
318 return RGBA.fromInts(val(r), val(g), val(b))
319 }
320

Callers 3

DialogStatusFunction · 0.85
SidebarFunction · 0.85
ansiToRgbaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected