MCPcopy Index your code
hub / github.com/anomalyco/opencode / chroma

Function chroma

packages/opencode/src/cli/cmd/run/theme.ts:188–190  ·  view source on GitHub ↗
(color: RGBA)

Source from the content-addressed store, hash-verified

186}
187
188function chroma(color: RGBA) {
189 return Math.max(color.r, color.g, color.b) - Math.min(color.r, color.g, color.b)
190}
191
192function opaqueSyntaxStyle(style: SyntaxStyle | undefined, bg: RGBA): SyntaxStyle | undefined {
193 if (!style) {

Callers 1

generateGrayScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected