title: JavaScript convert RGB integers to Hexadecimal
body: <p>I'm using Vivagraph JS library to render some graphs. </p>
  
  <p>I would like to change the color of the node like this </p>
  
  <p><code>nodeUI.color = 0xFFA500FF;</code></p>
  
  <p>^ This is a random example. Not the corresponding hexadecimal value for RGB below</p>
  
  <p>I get from server RGB values as an array like this </p>
  
  <p><code>rgb = [229,64,51]</code></p>
  
  <p>How do i convert RGB to the Hexadecimal type value metioned above?</p>
  
  <p>Thanks</p>