title: Canvas fillStyle from number
body: <p>I am trying to get my canvas to use a fill style from an array of ARGB integers.</p>
  
  <p>Here is a minimally working example which can be lifted into JSFiddle:</p>
  
  <pre><code>var ctx = $('#cv')[0].getContext("2d");
  var pal = [0x00000000, 0xff000000, 0xffff0000];
  
  var col = '"#' + (pal[2]&amp;0xffffff).toString(16) + '"';
  alert(col);
  
  ctx.fillStyle = col;
  ctx.fillRect(0, 0, 200, 200);
  </code></pre>
  
  <p>This gives me a black rectangle, and the fillStyle remains <code>"#000000"</code>, yet the correct color is alerted.</p>
  
  <p>What have I missed?</p>