MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toColor

Function toColor

common/src/web/screen/screen.js:1–7  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

1function toColor(num) {
2 num >>>= 0;
3 var b = num & 0xFF,
4 g = (num & 0xFF00) >>> 8,
5 r = (num & 0xFF0000) >>> 16;
6 return "rgb(" + [r, g, b].join(",") + ")";
7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected