public void defineFillStyle(Color[] colors,int[] ratios,Transform matrix,boolean radial){
  GradientFill fill=new GradientFill(colors,ratios,matrix,radial);
  elements.add(fill);
  for (int i=0; i < colors.length; i++) {
    if (colors[i] == null) {
      continue;
    }
    if (colors[i] instanceof AlphaColor) {
      hasAlpha=true;
    }
  }
}

public void defineFillStyle ( Color [ ] colors , int [ ] ratios , Transform matrix , boolean radial ) { GradientFill fill = new GradientFill ( colors , ratios , matrix , radial ) ; elements . add ( fill ) ; for ( int i = 0 ; i < colors . length ; i ++ ) { if ( colors [ i ] == null ) { continue ; } if ( colors [ i ] instanceof AlphaColor ) { hasAlpha = true ; } } }
define a gradient fill
