MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / applyTransparencyToColor

Function applyTransparencyToColor

frontend/app/view/term/termutil.ts:27–30  ·  view source on GitHub ↗
(hexColor: string, transparency: number)

Source from the content-addressed store, hash-verified

25}
26
27function applyTransparencyToColor(hexColor: string, transparency: number): string {
28 const alpha = 1 - transparency; // transparency is already 0-1
29 return colord(hexColor).alpha(alpha).toHex();
30}
31
32// returns (theme, bgcolor, transparency (0 - 1.0))
33export function computeTheme(

Callers 1

computeThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected