code: public GeneralPath recolor(Color newColor) {
          return new GeneralPath(elements, newColor, winding, stroke, fill);
      }
docs: Recolor the path with the specified color.
  
  @param newColor new path color
  @return the recolored path