public static double[] toHSV(int r, int g, int b) {
Color color = new Color(r, g, b);
float[] hsv = Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null);
return new double[]{hsv[0] * 360, hsv[1] * 100, hsv[2] * 100};
}
标签:int,java,color,double,Color,rgb,hsv From: https://www.cnblogs.com/bxmm/p/17247187.html