One of the main ideas behind using bitwise operators in languages like C++/java/C# is that they\'re extremely fast. But I\'ve heard that in javascript they\'re very slow (ad
Nobody uses hex anymore?
function hextoRgb(c) { c = '0x' + c.substring(1); return [(c >> 16) & 255, (c >> 8) & 255, c & 255]; } var c1 = hextoRgb('#191970'); alert('rgb(' + c1.join(',') + ')');