java rgb转hsv
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};
}
哇!又赚了一天人民币