def draw_polygon(list_of_points, color=colors.lightgreen, border=None, colour=None, **kwargs):
 if (colour is not None):
  color = colour
  del colour
 (strokecolor, color) = _stroke_and_fill_colors(color, border)
 xy_list = []
 for (x, y) in list_of_points:
  xy_list.append(x)
  xy_list.append(y)
 return Polygon(xy_list, strokeColor=strokecolor, fillColor=color, strokewidth=0, **kwargs)

def draw_polygon ( list_of_points , color = colors . lightgreen , border = None , colour = None , ** kwargs ) : if ( colour is not None ) : color = colour del colour ( strokecolor , color ) = _stroke_and_fill_colors ( color , border ) xy_list = [ ] for ( x , y ) in list_of_points : xy_list . append ( x ) xy_list . append ( y ) return Polygon ( xy_list , strokeColor = strokecolor , fillColor = color , strokewidth = 0 , ** kwargs )
draw polygon .