MCPcopy Create free account
hub / github.com/anomalyco/opencode / col

Function col

packages/tui/src/theme/index.ts:366–370  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

364 const isDark = mode == "dark"
365
366 const col = (i: number) => {
367 const value = colors.palette[i]
368 if (value) return RGBA.fromHex(value)
369 return ansiToRgba(i)
370 }
371
372 // Generate gray scale based on terminal background
373 const grays = generateGrayScale(bg, isDark)

Callers 1

generateSystemFunction · 0.85

Calls 1

ansiToRgbaFunction · 0.70

Tested by

no test coverage detected