title: Weighted heat maps in android
body: <p>I am trying to create a weighted heat map for my android app project. I had a look at the google documentation for it. I don't understand how to create a new gradient using colors array and starting points array. The starting array is denoted as </p>
  
  <blockquote>
    <p>The starting point for each color, given as a percentage of the maximum intensity.</p>
  </blockquote>
  
  <p>What does it mean? How to relate color array with starting point array?</p>
  
  <pre><code>int[] colors = {
          Color.GREEN,    // green(0-50)
          Color.YELLOW,    // yellow(51-100)
          Color.rgb(255,165,0), //Orange(101-150)
          Color.RED,              //red(151-200)
          Color.rgb(153,50,204), //dark orchid(201-300)
          Color.rgb(165,42,42) //brown(301-500)
  };
  
  float[] startpoints = {
  
  };
  </code></pre>
  
  <p>I need to fill this startpoints array.</p>