title: Converting rgba values into one integer in Javascript
body: <p>I can already convert 32bit integers into their rgba values like this:</p>
  
  <pre><code>pixelData[i] = {
          red: pixelValue &gt;&gt; 24 &amp; 0xFF,
          green: pixelValue &gt;&gt; 16 &amp; 0xFF,
          blue: pixelValue &gt;&gt; 8 &amp; 0xFF,
          alpha: pixelValue &amp; 0xFF
      };
  </code></pre>
  
  <p>But I don't really know how to reverse it.</p>