Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dbolya/yolact
/ hexToRgb
Function
hexToRgb
web/scripts/utils.js:68–71 ·
view source on GitHub ↗
(hex)
Source
from the content-addressed store, hash-verified
66
}
67
68
function
hexToRgb(hex) {
69
var
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
70
return
result ? [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)] : null;
71
}
Callers
1
render
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected