code: public void setColor(int color, boolean callback) {
  
      int alpha = Color.alpha(color);
      int red = Color.red(color);
      int blue = Color.blue(color);
      int green = Color.green(color);
  
      float[] hsv = new float[3];
  
      Color.RGBToHSV(red, green, blue, hsv);
  
      this.alpha = alpha;
      hue = hsv[0];
      sat = hsv[1];
      val = hsv[2];
  
      if (callback && onColorChangedListener != null) {
        onColorChangedListener.onColorChanged(Color.HSVToColor(this.alpha, new float[] { hue, sat, val }));
      }
  
      invalidate();
    }
docs: Set the color this view should show.
  
  @param color The color that should be selected. #argb
  @param callback If you want to get a callback to your OnColorChangedListener.