code: @Override
  	protected void updateValuesFromHSVFields () {
  		int[] hsv = ColorUtils.RGBtoHSV(color);
  		int h = hsv[0];
  		int s = hsv[1];
  		int v = hsv[2];
  
  		if (hBar.isInputValid()) h = hBar.getValue();
  		if (sBar.isInputValid()) s = sBar.getValue();
  		if (vBar.isInputValid()) v = vBar.getValue();
  
  		color = ColorUtils.HSVtoRGB(h, s, v, color.a);
  
  		int cr = MathUtils.round(color.r * 255.0f);
  		int cg = MathUtils.round(color.g * 255.0f);
  		int cb = MathUtils.round(color.b * 255.0f);
  
  		rBar.setValue(cr);
  		gBar.setValue(cg);
  		bBar.setValue(cb);
  	}
docs: Updates picker from H, S and V bars