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

Function value

packages/opencode/src/cli/cmd/run/theme.ts:155–155  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

153 const g = Math.floor(index / 6) % 6
154 const r = Math.floor(index / 36)
155 const value = (x: number) => (x === 0 ? 0 : x * 40 + 55)
156 return RGBA.fromInts(value(r), value(g), value(b))
157 }
158

Callers 2

ansiToRgbaFunction · 0.70
bodyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected