def rect(pen, x, y, w, h):
    pen.moveTo( (x, y) )
    pen.lineTo( (x, y+h) )
    pen.lineTo( (x+w, y+h) )
    pen.lineTo( (x+w, y) )
    pen.closePath()
Draw a rectangle with a pen object.
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/primitives.py/rect