def drawRect(pen, BL, BR, TR, TL):

    pen.moveTo(BL)
    pen.lineTo(BR)
    pen.lineTo(TR)
    pen.lineTo(TL)
    pen.closePath()
General drawing function for a rectangle.
dataset/ETHPy150Open adobe-type-tools/box-drawing/boxDrawing.py/drawRect