コード例 #1
0
 public static float[] getHSB(Color color) {
   float[] rgb = new float[4];
   float[] hsb = new float[3];
   color.getComponents(rgb);
   int r = (int) (rgb[0] * 256);
   int g = (int) (rgb[1] * 256);
   int b = (int) (rgb[2] * 256);
   Color.RGBtoHSB(r, g, b, hsb);
   return hsb;
 }