title: Why can't I shift 0xff0000 to 0xff000000 using << 2?
body: <p>isn't this literally just moving the FF two bits to the left? for some reason, doing this in javascript I get 0x3fc0000</p>
  
  <p>What I am trying to do is combine a hex color with an alpha channel mask</p>
  
  <p>i.e. alpha = 0xff / full opacity</p>
  
  <p>color = 0x00ff00</p>
  
  <p>end result = 0xff00ff00</p>