SyntaxFix
Write A Post
Hire A Developer
Questions
this is better function
function RGB2HTML(red, green, blue) { var decColor =0x1000000+ blue + 0x100 * green + 0x10000 *red ; return '#'+decColor.toString(16).substr(1); }