le.backgroundColor = "#"+rgb2hex(red,green,blue)
}

function hexstr(number) {
    var chars = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
    var low = number & 0xf;
    var high = (number >> 4) & 0xf;
    return "" + chars[high] + chars[low];
}

function rgb2hex(r, g, b) {
    return "" + hexstr(r) + hexstr(g) + hexstr(b) +"";
}
document.onmousedown = function() {
  mouseDown = 1;
}
document.onmouseup = function() {
  mouseDown = 0;
}
pickColor();
</script>

<