Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cifertech/DisplayKit
/ getContrastingColor
Function
getContrastingColor
app.js:1977–1979 ·
view source on GitHub ↗
(hex)
Source
from the content-addressed store, hash-verified
1975
}
1976
1977
function
getContrastingColor(hex) {
1978
return
isLightColor(hex) ?
"#111827"
:
"#FFFFFF"
;
1979
}
1980
1981
function
hexToRgb565(hex) {
1982
hex = hex.replace(
"#"
,
""
);
Callers
2
createElementWithDefaults
Function · 0.85
addElement
Function · 0.85
Calls
1
isLightColor
Function · 0.85
Tested by
no test coverage detected