title: Color generation function
body: <p>Let's consider the following scenario: a function which can generate code colors from white to red, from white to blue, from white to pink, from white to orange, etc.</p>
  
  <p>The colors code is in RGB format with values from 0 to 255.</p>
  
  <p>Any ideas? Can you give me the pseudocode or link to such algorithm? </p>