code: private void updateValuesFromRGBFields () {
  		int r = MathUtils.round(color.r * 255.0f);
  		int g = MathUtils.round(color.g * 255.0f);
  		int b = MathUtils.round(color.b * 255.0f);
  
  		if (rBar.isInputValid()) r = rBar.getValue();
  		if (gBar.isInputValid()) g = gBar.getValue();
  		if (bBar.isInputValid()) b = bBar.getValue();
  
  		color.set(r / 255.0f, g / 255.0f, b / 255.0f, color.a);
  
  		int[] hsv = ColorUtils.RGBtoHSV(color);
  		int ch = hsv[0];
  		int cs = hsv[1];
  		int cv = hsv[2];
  
  		hBar.setValue(ch);
  		sBar.setValue(cs);
  		vBar.setValue(cv);
  
  		verticalBar.setValue(hBar.getValue());
  		palette.setValue(sBar.getValue(), vBar.getValue());
  	}
docs: Updates picker from R, G and B bars