/** * Construct a Gradient with the given colors, knot positions and interpolation types. * * @param x the knot positions * @param rgb the colors * @param types interpolation types */ public Gradient(int[] x, int[] rgb, byte[] types) { setKnots(x, rgb, types); }