Well, I just needHow to convert colors in RGB valuesformat to HEXHex format and the other way around.vice versa?
I've tried thisFor example, but it didn't work.
function RGB2HTML(red, green, blue)
{
var decColor = red + 256 * green + 65536 * blue;
return decColor.toString(16);
}
Exampleconvert :'#0080C0'
to (0, 128, 192)
.
#0080C0 to (0,128,192)