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