code: def drawRect(page, rect, color=None, fill=None, dashes=None,
               width=1, roundCap=False, morph=None, overlay=True):
      
      img = page.newShape()
      Q = img.drawRect(Rect(rect))
      img.finish(color=color, fill=fill, dashes=dashes, width=width,
                     roundCap=roundCap, morph=morph)
      img.commit(overlay)
  
      return Q
docs: Draw a rectangle.