private float colorToAngle(int color){
  float[] colors=new float[3];
  Color.colorToHSV(color,colors);
  return (float)Math.toRadians(-colors[0]);
}

private float colorToAngle ( int color ) { float [ ] colors = new float [ 3 ] ; Color . colorToHSV ( color , colors ) ; return ( float ) Math . toRadians ( - colors [ 0 ] ) ; }
convert a color to an angle .
