static float[] rgbToHSB(RGB rgb) { ret rgb == null ? null : Color.RGBtoHSB(rgb.redInt(), rgb.greenInt(), rgb.blueInt(), new float[3]); }