MCPcopy 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
1977function getContrastingColor(hex) {
1978 return isLightColor(hex) ? "#111827" : "#FFFFFF";
1979}
1980
1981function hexToRgb565(hex) {
1982 hex = hex.replace("#", "");

Callers 2

addElementFunction · 0.85

Calls 1

isLightColorFunction · 0.85

Tested by

no test coverage detected