title: RGB Int to RGB - Python
body: <p>How can I convert an RGB integer to the corresponding RGB tuple <code>(R,G,B)</code>? Seems simple enough, but I can't find anything on google.</p>
  
  <p>I know that for every RGB <code>(r,g,b)</code> you have the integer <code>n = r256^2 + g256 + b</code>, how can I solve the reverse in Python, IE given an <code>n</code>, I need the <code>r</code>,<code>g</code>,<code>b</code> values.</p>