(draw, box, color, width)
Draws rectangle with provided color and line width
Draws rectangle with provided color and line width
Draws rectangle with provided color and line width
def draw_rectangle(draw, box, color, width):
    """
    Draws rectangle with provided color and line width
    """
    line = (box[0], box[1], box[0], box[3])
    draw.line(line, fill=color, width=width)

    line = (box[0], box[1], box[2], box[1])
    draw.line(line, fill=color, width=width)

    line = (box[0], box[3], box[2], box[3])
    draw.line(line, fill=color, width=width)

    line = (box[2], box[1], box[2], box[3])
    draw.line(line, fill=color, width=width)
def draw_rectangle ( draw , box , color , width ) : line = ( box [ 0 ] , box [ 1 ] , box [ 0 ] , box [ 3 ] ) draw . line ( line , fill = color , width = width ) line = ( box [ 0 ] , box [ 1 ] , box [ 2 ] , box [ 1 ] ) draw . line ( line , fill = color , width = width ) line = ( box [ 0 ] , box [ 3 ] , box [ 2 ] , box [ 3 ] ) draw . line ( line , fill = color , width = width ) line = ( box [ 2 ] , box [ 1 ] , box [ 2 ] , box [ 3 ] ) draw . line ( line , fill = color , width = width )