ifclass RGB static Color toColor(RGB rgb) { ret rgb == null ? null : rgb.getColor(); } endif static Color toColor(int rgb) { ret new Color(rgb); } static Color toColor(S hex) { ret awtColor(hex); } static Color toColor(int[] rgb) { ret new Color(rgb[0], rgb[1], rgb[2]); }