}
String[] pieces = afterUrl.split("/");
String xy[] = pieces[0].split(",");
String xy2[] = pieces[1].split(",");
LinearGradient lingrad = layer.createLinearGradient(
Double.parseDouble(xy[0]), Double.parseDouble(xy[1]),
Double.parseDouble(xy2[0]), Double.parseDouble(xy2[1]));
lingrad.addColorStop(Double.parseDouble(pieces[2]), "#" + pieces[3]);
lingrad.addColorStop(Double.parseDouble(pieces[4]), "#" + pieces[5]);
return lingrad;
}