MCPcopy
hub / github.com/anomalyco/opencode / paletteColor

Function paletteColor

packages/opencode/src/cli/cmd/run/theme.ts:266–269  ·  view source on GitHub ↗
(colors: TerminalColors, index: number)

Source from the content-addressed store, hash-verified

264}
265
266function paletteColor(colors: TerminalColors, index: number): RGBA {
267 const value = colors.palette[index]
268 return value ? RGBA.fromHex(value) : ansiToRgba(index)
269}
270
271function splashShadow(indexed: RGBA[], base: RGBA, overlay: RGBA, value: number): RGBA {
272 const mixed = tint(base, overlay, value)

Callers 1

colorFunction · 0.85

Calls 1

ansiToRgbaFunction · 0.70

Tested by

no test coverage detected