title: Splitting an RGB uint into its separate R G B components
body: <p>I have an RGB colour stored as a uint. I can create this from the RGB values using the bitwise left and bitwise or operator in an expression like this:</p>
  
  <pre><code>colour = r&lt;&lt;16 | g&lt;&lt;8 | b;
  </code></pre>
  
  <p>I want to do the opposite. I have the final number and I want the r, g and b values. Does anyone know how to do this?</p>