blob: 1d1685980f6b10d2a8d1b66b79825ee7278f654f [file] [log] [blame]
function toColor(num) {
num >>>= 0;
var b = num & 0xFF,
g = (num & 0xFF00) >>> 8,
r = (num & 0xFF0000) >>> 16;
return "rgb(" + [r, g, b].join(",") + ")";
}