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

Function splashShadow

packages/opencode/src/cli/cmd/run/theme.ts:271–274  ·  view source on GitHub ↗
(indexed: RGBA[], base: RGBA, overlay: RGBA, value: number)

Source from the content-addressed store, hash-verified

269}
270
271function splashShadow(indexed: RGBA[], base: RGBA, overlay: RGBA, value: number): RGBA {
272 const mixed = tint(base, overlay, value)
273 return nearestIndexed(indexed, mixed)
274}
275
276export function resolveTheme(theme: ThemeJson, pick: "dark" | "light"): TuiThemeCurrent {
277 const defs = theme.defs ?? {}

Callers 2

splashThemeFunction · 0.85
theme.tsFile · 0.85

Calls 2

nearestIndexedFunction · 0.85
tintFunction · 0.70

Tested by

no test coverage detected