Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/kyechan99/capsule-render
/ parseColor
Function
parseColor
utils/parse.ts:18–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
};
17
18
export
const
parseColor = color => {
19
if
(isGradientColor(color))
return
"url(#linear)"
;
20
if
(color ===
"random"
)
return
generateRandomColor();
21
if
(color)
return
"#"
+ color;
22
return
"#B897FF"
;
23
};
Callers
2
constructor
Function · 0.90
color.test.ts
File · 0.90
Calls
2
isGradientColor
Function · 0.90
generateRandomColor
Function · 0.90
Tested by
no test coverage detected