def draw_box(point1, point2, color=colors.lightgreen, border=None, colour=None, **kwargs):
 (x1, y1) = point1
 (x2, y2) = point2
 if (colour is not None):
  color = colour
  del colour
 (strokecolor, color) = _stroke_and_fill_colors(color, border)
 (x1, y1, x2, y2) = (min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2))
 return Polygon([x1, y1, x2, y1, x2, y2, x1, y2], strokeColor=strokecolor, fillColor=color, strokewidth=0, **kwargs)

def draw_box ( point1 , point2 , color = colors . lightgreen , border = None , colour = None , ** kwargs ) : ( x1 , y1 ) = point1 ( x2 , y2 ) = point2 if ( colour is not None ) : color = colour del colour ( strokecolor , color ) = _stroke_and_fill_colors ( color , border ) ( x1 , y1 , x2 , y2 ) = ( min ( x1 , x2 ) , min ( y1 , y2 ) , max ( x1 , x2 ) , max ( y1 , y2 ) ) return Polygon ( [ x1 , y1 , x2 , y1 , x2 , y2 , x1 , y2 ] , strokeColor = strokecolor , fillColor = color , strokewidth = 0 , ** kwargs )
draw a box .