title: JavaScript function to return "n" shades of a given color from (dark to light)
body: <p>I would like to get the color range of the specific color for generating tag cloud. </p>
  
  <p>Say that user has entered some color with <code>RGB/HHHHHH</code> values then I would like to write a function <code>f(color, no)</code> which returns <code>RGB/HHHHHH</code> for "no" of different shades from dark to light colors for specified "color". These colors then will be useful to display the different tags with different color of same shade. But I would like to avoid black and white shades in it. </p>
  
  <p>Following is example of <code>F({R:0, G:0, B:255}, 7)</code> which returns <code>7</code> shades of blue.</p>
  
  <p><img src="https://i.stack.imgur.com/YRVtq.png" alt="f({R:0, G:0, B:255}, 7) returns 7 shades of blue"></p>
  
  <p>I would not like it to be true for any RGB combination say for example <code>(25, 150,150)</code> also. </p>
  
  <p>Is this function possible using JavaScript or is there any formula for RGB with which this can be achieved? </p>