private static String parseAlpha(String gradient){
  double value;
  value=Double.parseDouble(gradient);
  return String.format(HEX_FORMAT,(int)(value * COLOR_RANGE));
}

private static String parseAlpha ( String gradient ) { double value ; value = Double . parseDouble ( gradient ) ; return String . format ( HEX_FORMAT , ( int ) ( value * COLOR_RANGE ) ) ; }
parse alpha gradient of color from range 0 - 1 to range 0 - 255
