docs: public void setKnots(int[] x, int[] y, byte[] types, int offset, int count) {
  		numKnots = count;
  		xKnots = new int[numKnots];
  		yKnots = new int[numKnots];
  		knotTypes = new byte[numKnots];
  		System.arraycopy(x, offset, xKnots, 0, numKnots);
  		System.arraycopy(y, offset, yKnots, 0, numKnots);
  		System.arraycopy(types, offset, knotTypes, 0, numKnots);
  		sortKnots();
  		rebuildGradient();
  	}