code: public void setCornerColor(int index, Color color) {
          if (!cornerGradation) {
              cornerGradation = true;
          }
          colors.set(index, color);
      }
docs: Sets the point's color for gradation.
  
  @param index The index number of the point.
  @param color The color of the point.